Hello, how can I delete a single key and value in PreferenceManager?
I found this way
but it takes a long time.
I found this way
B4X:
Dim PMR As Map=PreferenceManager1.GetAll
PreferenceManager1.ClearAll
For K=0 To PMR.Size-1
Dim S As String=PMR.GetKeyAt(K)
If S<>"Key_to_delete" Then
PreferenceManager1.SetString(PMR.GetKeyAt(K),PMR.GetValueAt(K))
End If
Next