Android Question ASSegmentedTab not running on android tablet

tsteward

Well-Known Member
Licensed User
Longtime User
I have a diagnostic tool and if I try to run my app it crashes.
It does only use android 4.4.2

Seems ASSegmentedTAB is not happy with something.
Any help appreciated
Logger connected to: Autel MaxiIM IM608
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Error occurred on line: 552 (ASSegmentedTab)
java.lang.RuntimeException: Method: setClipToOutline not found in: anywheresoftware.b4a.BALayout
at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:363)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:120)
at lishi.assistand.tony.stewardgmail.com.assegmentedtab._setcircleclip(assegmentedtab.java:807)
at lishi.assistand.tony.stewardgmail.com.assegmentedtab._base_resize(assegmentedtab.java:732)
at lishi.assistand.tony.stewardgmail.com.assegmentedtab._designercreateview(assegmentedtab.java:1024)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
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.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:61)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:147)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:329)
at lishi.assistand.tony.stewardgmail.com.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:3723)
at lishi.assistand.tony.stewardgmail.com.b4xmainpage._b4xpage_created(b4xmainpage.java:3661)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:318)
at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:285)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:1087)
at lishi.assistand.tony.stewardgmail.com.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:1087)
at lishi.assistand.tony.stewardgmail.com.b4xpagesmanager._showpage(b4xpagesmanager.java:519)
at lishi.assistand.tony.stewardgmail.com.b4xpagesmanager._addpage(b4xpagesmanager.java:339)
at lishi.assistand.tony.stewardgmail.com.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:353)
at lishi.assistand.tony.stewardgmail.com.b4xpagesmanager._initialize(b4xpagesmanager.java:170)
at lishi.assistand.tony.stewardgmail.com.main._activity_create(main.java:458)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
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.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at lishi.assistand.tony.stewardgmail.com.main.afterFirstLayout(main.java:105)
at lishi.assistand.tony.stewardgmail.com.main.access$000(main.java:17)
at lishi.assistand.tony.stewardgmail.com.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Device locale: en
Found 217 strings.
*** mainpage: B4XPage_Appear
** Activity (main) Resume **
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
As my open source projects support Android 4.x tablets when I find a 'setClipToOutline' call I just add a 'try catch' around it
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Check the Example code provided here. It basically the same android 4 issue SetClipToOUtline issue

 
Upvote 0
Top