Android Question zxScannerLive problem

domz

Member
I am a beginner in B4A ... I downloaded a project sample for zxscannerLiveView
As I run his project, It works. But when I paste his code from another project with exact code and lay-out
the debugging mode automatically stop and

It says: error code line... which is the initialization of zxscannerliveview
I don't know what's the problem..
 

Attachments

  • Capture.PNG
    Capture.PNG
    57.4 KB · Views: 244

davidforexer

New Member
helo, i'm get error when using zxScannerLiveView on B4A v9.01.2 android 5.26, can some one tell solving about this? many thanks

Logger connected to: samsung SM-G532G
--------- beginning of system
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (mod_login) Create, isFirst = true **
** Activity (mod_login) Resume **
** Activity (mod_login) Pause, UserClosed = false **
** Activity (mod_main) Create, isFirst = true **
** Activity (mod_main) Resume **
** Activity (mod_main) Pause, UserClosed = false **
** Activity (mod_supplier) Create, isFirst = true **
** Activity (mod_supplier) Resume **
** Activity (mod_supplier) Pause, UserClosed = false **
** Activity (scan) Create, isFirst = true **
Error occurred on line: 25 (scan)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at b4a.example.scan._activity_create(scan.java:382)
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:351)
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 b4a.example.scan.afterFirstLayout(scan.java:104)
at b4a.example.scan.access$000(scan.java:17)
at b4a.example.scan$WaitForLayout.run(scan.java:82)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7406)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
... 18 more
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:2598)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:4431)
at android.content.res.Resources.getLayout(Resources.java:2412)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:380)
at eu.livotov.labs.android.camview.ScannerLiveView.initUI(ScannerLiveView.java:58)
at eu.livotov.labs.android.camview.ScannerLiveView.<init>(ScannerLiveView.java:53)
at zxscanwrapper.zxScanWrapper._initialize(zxScanWrapper.java:90)
... 21 more
** Activity (scan) Resume **
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
helo, i'm get error when using zxScannerLiveView on B4A v9.01.2 android 5.26, can some one tell solving about this? many thanks

Logger connected to: samsung SM-G532G
--------- beginning of system
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (mod_login) Create, isFirst = true **
** Activity (mod_login) Resume **
** Activity (mod_login) Pause, UserClosed = false **
** Activity (mod_main) Create, isFirst = true **
** Activity (mod_main) Resume **
** Activity (mod_main) Pause, UserClosed = false **
** Activity (mod_supplier) Create, isFirst = true **
** Activity (mod_supplier) Resume **
** Activity (mod_supplier) Pause, UserClosed = false **
** Activity (scan) Create, isFirst = true **
Error occurred on line: 25 (scan)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at b4a.example.scan._activity_create(scan.java:382)
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:351)
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 b4a.example.scan.afterFirstLayout(scan.java:104)
at b4a.example.scan.access$000(scan.java:17)
at b4a.example.scan$WaitForLayout.run(scan.java:82)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7406)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
... 18 more
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:2598)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:4431)
at android.content.res.Resources.getLayout(Resources.java:2412)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:380)
at eu.livotov.labs.android.camview.ScannerLiveView.initUI(ScannerLiveView.java:58)
at eu.livotov.labs.android.camview.ScannerLiveView.<init>(ScannerLiveView.java:53)
at zxscanwrapper.zxScanWrapper._initialize(zxScanWrapper.java:90)
... 21 more
** Activity (scan) Resume **
You are missing the resource files. See original project and folders containing the resource files.
 
Upvote 0
Top