B4A Library [B4X] KVS - KeyValueStore library

Status
Not open for further replies.

VittorioBarile

Member
Licensed User
How could i get and put a bidimensional array with custom type in kvs? It gives to me this error:

B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (setup) Create, isFirst = true **
Error occurred on line: 86 (KeyValueStore)
java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.Object[][]
    at cloud.pagamico.app.setup._leggiorariallarmi(setup.java:1725)
    at cloud.pagamico.app.setup._activity_create(setup.java:853)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at cloud.pagamico.app.setup.afterFirstLayout(setup.java:105)
    at cloud.pagamico.app.setup.access$000(setup.java:17)
    at cloud.pagamico.app.setup$WaitForLayout.run(setup.java:83)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
** Activity (setup) Resume **


my Code

B4X:
Dim tmpListaAllarmi(10,8) as Allarme
Dim allarmi(10,8) As Object = Starter.kvs.GetDefault("orariAllarmi", tmpListaAllarmi)
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…