Bug? Camera2 example : Exception: Sub activity_permissionresult was not found

Cain Soft

Member
Licensed User
Hi,

I downloaded the camera2 example (https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/) and when I try to run in release mode, I get the following error message:

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
FULL
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) 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:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7562)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
On first run, the window asking for permission appeared. But after that it just throws an error.

I only made one change to the original code to see the error: #BridgeLogger:true

(I installed the latest B4A (10.90) and the "Android SDK + Required Resources" packages.)

Thanks advance!
Attila
 

Cain Soft

Member
Licensed User
This error means that you are using an old version of RuntimePermissions library. I recommend you to delete all the internal libraries and reinstall B4A.
Thank you, deleting the directory solved the problem.
 
Top