Android Question why RuntimePermissions.CheckAndRequest, allways show pop screen ask the recipient to turn on the sharing function in quick settings

nickysuwandi

Member
Licensed User
Longtime User
Today i have try using RuntimePermissions.

B4X:
dim rp as RuntimePermissions
rp.CheckAndRequest(rp.PERMISSION_READ_EXTERNAL_STORAGE)

when we testing in oppo android 10, it will display popup to ask the permission (allow or deny), but after we click one of the button (allow/deny), it will display another pop message " Ask recipient to turn on the sharing function in quick settings".

Anyone know whats wrong??? (This only happen in Release mode)
When i try using debug mode, this is work fine...
 

Attachments

  • oppo.jpeg
    oppo.jpeg
    45.4 KB · Views: 174

nickysuwandi

Member
Licensed User
Longtime User
i guess you are doing more than the code you postet.

Checking for Runtimepermission does not show a second popup to share something. Except if i do share something.

thanks for quick respon DonManfred.

When we disable that line (checandrequest), my program don't display another popupmessage (but this don't happen to old android phone /android icecream).

Can you give me some clue, what can couse that popup message appear.

Thanks

Nicky
 
Upvote 0

nickysuwandi

Member
Licensed User
Longtime User
When debug mode, i got this error but my apps still running (don't get popup ask sharing file)

May this couse the problem??

Logger connected to: OPPO CPH1821
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
--------- beginning of system
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Activity (main) Pause, UserClosed = false **
** Activity (mainmenu) Create, isFirst = true **
(SQLiteException) android.database.sqlite.SQLiteException: no such table: trdinvfa (code 1 SQLITE_ERROR): , while compiling: SELECT count(*) FROM trdinvfa
(SQLiteException) android.database.sqlite.SQLiteException: no such table: trhinvfax (code 1 SQLITE_ERROR): , while compiling: SELECT count(*) FROM trhinvfax where trdate='20200923'
** Activity (mainmenu) Resume **
(SQLiteException) android.database.sqlite.SQLiteException: no such table: trdinvfa (code 1 SQLITE_ERROR): , while compiling: SELECT count(*) FROM trdinvfa
** Activity (mainmenu) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (activity_permissionresult)
sending message to waiting queue (activity_permissionresult)
running waiting messages (2)
main$ResumeMessagerun (java line: 313)
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 anywheresoftware.b4a.BA.setActivityPaused(BA.java:459)
at murahsoft.mspulsaso.main$ResumeMessage.run(main.java:313)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7830)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1040)
--------- beginning of crash
Copying updated assets files (44)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
 
Upvote 0
Top