When using the app, an ini-file is created that stores the app's settings. What could have happened that the ini-file is now empty after closing and reopening the emulator? I've tried it on different emulators, but this hasn't happened before.
Refusal of assistance with reference to the rules:
2.5 Personal Use – Genymotion Desktop
...
By selecting “Personal Use”, End-Users agree not to receive any technical assistance from Genymobile.
When using the app, an ini-file is created that stores the app's settings. What could have happened that the ini-file is now empty after closing and reopening the emulator? I've tried it on different emulators, but this hasn't happened before.
I'm probably doing something wrong. I'm getting the error java.lang.RuntimeException: Class instance was not initialized (keyvaluestore)
Starter:
Sub Service_Start (StartingIntent As Intent)
Service.StopAutomaticForeground
If File.Exists(xui.DefaultFolder, "kvs.data")=False Then
Dim kvs As KeyValueStore
kvs.Initialize(xui.DefaultFolder,"kvs.data")
kvs.Put("data1","x1")
kvs.Put("data2","x2")
Else
readKVS
End If
End Sub
Sub readKVS
Dim strVariable As String
strVariable = kvs.Get("data1")
Log(strVariable)
End Sub
-Use try..catch to pinpoint the exact error.
-If the conditional statement branches to ReadKVS, kvs should be initialized there also or
-Make it global as you've been advised and initialize it in Activity_Create
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.