Android Question checkbox check B4XView

madru

Active Member
Licensed User
Longtime User
hi,

why does this
B4X:
dim cbx as B4XView

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("Page")
End Sub

Private Sub B4XPage_Appear
    cbx.Checked = True
End Sub

Sub cbx_CheckedChange(Checked As Boolean)
    Log("checked")
End Sub

gives this:

JNI_OnLoad
should not do the transition or the transition anim is null or it is running or the mContainer view is null or mContainer view hasn't been drawn to screen
Unexpected event (missing RaiseSynchronousEvents): cbx_checkedchange
Check the unfiltered logs for the full stack trace.
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1391)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:314)
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 anywheresoftware.b4a.objects.CompoundButtonWrapper$RadioButtonWrapper$RadioButtonListener.onCheckedChanged(CompoundButtonWrapper.java:145)
at android.widget.CompoundButton.setChecked(CompoundButton.java:157)
at anywheresoftware.b4a.objects.B4XViewWrapper.setChecked(B4XViewWrapper.java:289)
at tv.test.test.pageeditconfiguration._loaddata(pageeditconfiguration.java:130)
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:348)
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 anywheresoftware.b4a.BA$2.run(BA.java:387)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6623)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
 
Top