Android Question CamEx2 error

Sofian

Member
Hi everyone..
I am learn from this https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/#content . I create 2 activity, 1 activity to call cam activity. I not modify any code from the sample, only move the sample code from main to an activity and call it from other.
I got error with camex2. with same project, its works fine for some phone like oppo F11 and Xiaomi 3s but error with samsung galaxy Mega 6.3 and samsung tab3 T116
When I call open camera from an activity, this is from error log :

Logger connected to: samsung SM-T116NU
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (firebasemessaging) Create ***
** Service (firebasemessaging) Start **
Connected to location provider
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Activity (main) Pause, UserClosed = false **
** Activity (utama) Create, isFirst = true **
** Activity (utama) Resume **
sending message to waiting queue (sleep)
** Activity (utama) Pause, UserClosed = true **
** Activity (kirim) Create, isFirst = true **
** Activity (kirim) Resume **
** Activity (kirim) Pause, UserClosed = false **
** Activity (ambilfoto) Create, isFirst = true **
camex2_class_globals (java line: 141)
java.lang.VerifyError: anywheresoftware/b4a/objects/Camera2
at com.swk.panicbutton.camex2._class_globals(camex2.java:141)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.swk.panicbutton.camex2.innerInitialize(camex2.java:23)
at com.swk.panicbutton.camex2._initialize(camex2.java:707)
at com.swk.panicbutton.ambilfoto._activity_create(ambilfoto.java:412)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.swk.panicbutton.ambilfoto.afterFirstLayout(ambilfoto.java:105)
at com.swk.panicbutton.ambilfoto.access$000(ambilfoto.java:17)
at com.swk.panicbutton.ambilfoto$WaitForLayout.run(ambilfoto.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:5584)
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:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
*** Service (starter) Create ***

is anyone can help ?
 
Top