Hello,
I developed app in B4X Pages and used there B4XimageViews. During tests on different devices I found the problem with using B4XImageView at Samsung Galaxy TAB S - SDK 19. Subsequently I used example from tutorial:
with the same problem - crash on the same line according the log (see bellow)
So is there any limit for lower SDKs for using B4XImageView (for ex. min SDK is 25 can use B4XImageView)? Is there any limitation for B4X Pages of min SDK? Or it should work?
I looked for the answer in forum and in B4X Pages Booklet but without success.
Compiled by B4A v12.00
I developed app in B4X Pages and used there B4XimageViews. During tests on different devices I found the problem with using B4XImageView at Samsung Galaxy TAB S - SDK 19. Subsequently I used example from tutorial:
[B4X] B4XImageView - ImageView + resize modes
B4XImageView is a new custom view, added to XUI Views v2.40. It adds several useful resize modes to the standard ImageView: (Images source: https://www.b4x.com/android/forum/threads/compass-gm-a-gyro-magnetic-compass-app-featuring-true-and-magnetic-heading.121239/...
www.b4x.com
with the same problem - crash on the same line according the log (see bellow)
So is there any limit for lower SDKs for using B4XImageView (for ex. min SDK is 25 can use B4XImageView)? Is there any limitation for B4X Pages of min SDK? Or it should work?
I looked for the answer in forum and in B4X Pages Booklet but without success.
Compiled by B4A v12.00
Log:
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
SDK version = 19
Error occurred on line: 162 (B4XImageView)
java.lang.reflect.InvocationTargetException
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:1057)
at b4a.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:1070)
at b4a.example.b4xpagesmanager._showpage(b4xpagesmanager.java:427)
at b4a.example.b4xpagesmanager._addpage(b4xpagesmanager.java:247)
at b4a.example.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:261)
at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:167)
at b4a.example.main._activity_create(main.java:418)
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:146)
at b4a.example.main.afterFirstLayout(main.java:105)