Hello
How do I delete a stored date with KeyValueStore?
module Main
----------------
---------------
--------------
module boot
module starts
----------------
----------------
--------------
---------------
How do I delete a stored date with KeyValueStore?
module Main
----------------
---------------
--------------
module boot
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim memoria As Keyvaluestore
Dim dDouble As Double
End Sub
Sub Service_Create
memoria.Initialize(File.DirDefaultExternal,"datastore")
End Sub
Sub Service_Start (StartingIntent As Intent)
Dim dTemp As String = memoria.GetSimple("date")
Dim dDouble As Double =dTemp
StartServiceAt(starts,dDouble,False)
'I tried it, but when I turn on and turn off the phone I throw an error
memoria.Remove("date")
StopService("")
End Sub
Sub Service_Destroy
End Sub
module starts
----------------
----------------
--------------
---------------