Hi,
I am using Statemanager v1.20.
I got this error message:
After I add a CustomlistView with a panel with Checkbox on it, I got this.
My Panel:
Can someone tell me where to start to find the cause?
Kind regards,
André
I am using Statemanager v1.20.
I got this error message:
B4X:
Error loading state.
java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
java.lang.RuntimeException: java.lang.RuntimeException: Cannot parse: as boolean
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1716)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:250)
at android.app.ActivityThread.main(ActivityThread.java:7755)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Caused by: java.lang.RuntimeException: Cannot parse: as boolean
at anywheresoftware.b4a.BA.parseBoolean(BA.java:629)
at anywheresoftware.b4a.BA.ObjectToBoolean(BA.java:699)
at ciris.chauffeur.statemanager$ResumableSub_innerRestoreState.resume(statemanager.java:202)
at ciris.chauffeur.statemanager._innerrestorestate(statemanager.java:85)
at ciris.chauffeur.statemanager$ResumableSub_innerRestoreState.resume(statemanager.java:397)
at ciris.chauffeur.statemanager._innerrestorestate(statemanager.java:85)
at ciris.chauffeur.statemanager$ResumableSub_innerRestoreState.resume(statemanager.java:397)
at ciris.chauffeur.statemanager._innerrestorestate(statemanager.java:85)
at ciris.chauffeur.statemanager$ResumableSub_innerRestoreState.resume(statemanager.java:397)
at ciris.chauffeur.statemanager._innerrestorestate(statemanager.java:85)
at ciris.chauffeur.statemanager$ResumableSub_innerRestoreState.resume(statemanager.java:359)
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1714)
... 7 more
After I add a CustomlistView with a panel with Checkbox on it, I got this.
My Panel:
B4X:
Sub CreateItem(h As Int, j As Int, naam As String) As Panel
Dim pnl As Panel, lblNaam,lblCode As Label, chkGreen,chkRed As CheckBox, TextWidth As Int
pnl.Initialize("")
pnl.color=Colors.White
IME.Initialize(Me)
lblNaam.Initialize("") 'View #0
lblNaam.Text = naam
lblNaam.TextColor = Colors.DarkGray
lblNaam.TextSize = 18
If(Activity.Width>=1200) Then
lblNaam.TextSize = 22
End If
lblNaam.Gravity = Gravity.CENTER_VERTICAL
TextWidth=clvRoute.sv.Width - 170dip
pnl.AddView(lblNaam, 0, 0, TextWidth, h)
lblCode.Initialize("") 'View #1
lblCode.Text = CodeList.Get(j)
lblCode.TextColor = Colors.DarkGray
lblCode.TextSize = 18
If(Activity.Width>=1200) Then
lblCode.TextSize = 22
End If
lblCode.Gravity = Gravity.CENTER_VERTICAL
pnl.AddView(lblCode, TextWidth+5dip, 0, 80dip, h)
chkGreen.Initialize("ChkGreen") 'View #2
chkGreen.Color=Colors.Green
pnl.AddView(chkGreen, TextWidth+90dip, 0, 40dip, h)
chkRed.Initialize("ChkRed") 'View #3
chkRed.Color=Colors.Red
pnl.AddView(chkRed, TextWidth+130dip, 0, 40dip, h)
If(CheckGreen.Get(j) = True) Then chkGreen.Checked=True
If(CheckRed.Get(j) = True) Then chkRed.Checked=True
Return pnl
End Sub
Can someone tell me where to start to find the cause?
Kind regards,
André