Hmm.
I don't understand anything.
I check if the file exist and i enabled the writing on the file and now i've got an error.
raf.WriteEncryptedObject( SettingsMap, "123456", raf.CurrentPosition)
Give this error!
Logger connecté à: samsung SM-J320FN
--------- beginning of main
--------- beginning of system
Copying updated assets files (4)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 179 (Main)
java.lang.RuntimeException: Object should first be initialized (Map).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
at b4a.example.main._savesettings(main.java:777)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5246)
at android.widget.TextView.performClick(TextView.java:10618)
at android.view.View$PerformClick.run(View.java:21256)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6934)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
I wondered if there's no problem with the IDE and the code pushed on the mobile.
Sometimes i change the code, and i've got the same result.
If i close B4A, i uninstall my project and re-open this one, the code seems good or not (but there's some changes anyway).
I've a real doubt about the real changes and app running on my mobile.
Sometimes i feel that's a early version and not the one with the real changes.
Weird anyway.
This is for this reason that's pretty confuse.