Android Question [B4XPages] Barcode Reader example error Sub activity_permissionresult was not found.

Alberto Michelis

Well-Known Member
Licensed User
Hi, I test the example and works ok.
Then I add the same modules to my firts B4Xpages app.
Modify the manifest and add the #Aditionaljar
Compile, run and when I press the barcode button , which
B4XPages.ShowPage("BarcodePage")
I get this error:

Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (splash) Resume **
java.lang.Exception: Sub activity_permissionresult was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:219)
at anywheresoftware.b4a.BA$2.run(BA.java:387)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Pic and app zip attached.
 

Attachments

  • 1.png
    1.png
    86.7 KB · Views: 59
  • Splash.zip
    36.1 KB · Views: 49

Sagenut

Well-Known Member
Licensed User
Try adding this to Manifest
B4X:
AddManifestText(
<uses-permission
  android:name="android.permission.CAMERA"
  android:maxSdkVersion="19" />
)
 
Upvote 0

Alberto Michelis

Well-Known Member
Licensed User
Now I took the original example, which works ok as is, move the "b4xmainpage" where the barcode code is to a new module "mBarcode" and add a new simple "b4xmainpage", compile anr run ok and... same error.
If I dont have the barcode code in the "b4xmainpage" it does not work!
Attached the example modified.
 

Attachments

  • Project.zip
    187.2 KB · Views: 47
Upvote 0

Sagenut

Well-Known Member
Licensed User
Sorry, I am out of ideas.
 
Upvote 0
Top