Hi
Everything has worked fine before Basic4Android v2.7.
Now, when I try to call an activity using CallSubDelayed, the app sometimes crashes with the following error:
I've absolutely no idea what causes it. The error often occures when I try to close the activity and then immediately try to call it again.
Thanks in advance!
Everything has worked fine before Basic4Android v2.7.
Now, when I try to call an activity using CallSubDelayed, the app sometimes crashes with the following error:
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:250)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.dimartinoentertainment.moosikay.choosecategory._activity_create(choosecategory.java:279)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.dimartinoentertainment.moosikay.choosecategory.afterFirstLayout(choosecategory.java:89)
at com.dimartinoentertainment.moosikay.choosecategory.access$100(choosecategory.java:16)
at com.dimartinoentertainment.moosikay.choosecategory$WaitForLayout.run(choosecategory.java:74)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.InitializeSample(CanvasWrapper.java:557)
at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:71)
at anywheresoftware.b4a.objects.ImageViewWrapper.setImage(ImageViewWrapper.java:91)
at anywheresoftware.b4a.objects.ImageViewWrapper.build(ImageViewWrapper.java:114)
... 24 more
choosecategory_activity_create (B4A line: 51)
Activity.LoadLayout("choosecat")
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.dimartinoentertainment.moosikay.choosecategory._activity_create(choosecategory.java:279)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.dimartinoentertainment.moosikay.choosecategory.afterFirstLayout(choosecategory.java:89)
at com.dimartinoentertainment.moosikay.choosecategory.access$100(choosecategory.java:16)
at com.dimartinoentertainment.moosikay.choosecategory$WaitForLayout.run(choosecategory.java:74)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Object should first be initialized (ImageView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:46)
at anywheresoftware.b4a.objects.ViewWrapper.innerInitialize(ViewWrapper.java:56)
at anywheresoftware.b4a.objects.ImageViewWrapper.innerInitialize(ImageViewWrapper.java:35)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:290)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more
sending message to waiting queue (CallSubDelayed - chooseCatSolo)
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
I've absolutely no idea what causes it. The error often occures when I try to close the activity and then immediately try to call it again.
Thanks in advance!