Android Question Error using Zxingbarcodescanner library

Michael Mc

Member
Licensed User
Longtime User
I have two projects that use the ZxingBarcodeScanner library v1.

One project works fine the other throws the error below when I try to execute method: startscanner

Both the Activities are almost identical except for using Jackcess functions in the activity that is not working.

I know the error is a little rough but let me know what else you may need.

Thank you very much.


Here is the error:


B4X:
No package identifier when getting value for resource number 0x00000000
Shutting down VM
android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.Resources.getValue(Resources.java:2558)
    at android.content.res.Resources.getColor(Resources.java:2170)
    at android.content.res.Resources.getColor(Resources.java:2143)
    at main.java.me.dm7.barcodescanner.core.ViewFinderView.<init>(ViewFinderView.java:39)
    at main.java.me.dm7.barcodescanner.core.BarcodeScannerView.createViewFinderView(BarcodeScannerView.java:57)
    at main.java.me.dm7.barcodescanner.core.BarcodeScannerView.setupLayout(BarcodeScannerView.java:40)
    at main.java.me.dm7.barcodescanner.core.BarcodeScannerView.setupCameraPreview(BarcodeScannerView.java:70)
    at main.java.me.dm7.barcodescanner.core.CameraHandlerThread$1$1.run(CameraHandlerThread.java:31)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7225)
    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)
FATAL EXCEPTION: main
Process: com.ds.Taskit, PID: 32650
android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.Resources.getValue(Resources.java:2558)
    at android.content.res.Resources.getColor(Resources.java:2170)
    at android.content.res.Resources.getColor(Resources.java:2143)
    at main.java.me.dm7.barcodescanner.core.ViewFinderView.<init>(ViewFinderView.java:39)
    at main.java.me.dm7.barcodescanner.core.BarcodeScannerView.createViewFinderView(BarcodeScannerView.java:57)
    at main.java.me.dm7.barcodescanner.core.BarcodeScannerView.setupLayout(BarcodeScannerView.java:40)
    at main.java.me.dm7.barcodescanner.core.BarcodeScannerView.setupCameraPreview(BarcodeScannerView.java:70)
    at main.java.me.dm7.barcodescanner.core.CameraHandlerThread$1$1.run(CameraHandlerThread.java:31)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7225)
    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)
 

Michael Mc

Member
Licensed User
Longtime User
You did not added the resources to the 2nd project?
There is a #additionalres line in the example project and a responding folder.
Or there are files in objects/res i which are readonly and in the 2nd project you did not added them?

Thanks for your reply but I don't see it or know where to look.

I don't see an #additionaires line or anything useful in the objects/res folders in the project that currently works.
 
Upvote 0

Michael Mc

Member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…