I have 2 PCs, same IDE, B4A 12.2 JDK-14.0.1, Android SDK + Required Resources are same, the app example is BLE2.
A PC compiled APK, it works fine,
another PC compiled APK, it works first time, after app process exited, run it again it crashed.
In Debug mode, I got the log which release mode
In Debug mode
the program is blocked at wait for B4XPage_PermissionResult
A PC compiled APK, it works fine,
another PC compiled APK, it works first time, after app process exited, run it again it crashed.
In Debug mode, I got the log which release mode
B4X:
Logger connected to: Xiaomi 22021211RC
--------- beginning of main
Copying updated assets files (9)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
Found: , FD:51:FC:CF:28:98, RSSI = -94, (MyMap) {-1=[B@ecd1665, 0=[B@1437f3a}
connecting
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
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:227)
at anywheresoftware.b4a.BA$2.run(BA.java:395)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8213)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
In Debug mode
the program is blocked at wait for B4XPage_PermissionResult
B4X:
For Each per As String In Permissions
rp.CheckAndRequest(per)
'=== Here is blocked ==='
Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
'=======================
If Result = False Then
ToastMessageShow("No permission: " & Permission, True)
Return
End If
Next
Last edited: