If the user checks Never ask again however, the second dialog with the explanation shouldn't be shown, especially if the user already declined once before. Now the question is: how does my app know whether the user has checked the Never ask again? the Activity_PermissionResult doesn't give me...
I'm working on an existing, working project. (Using B4XPages, if that matter.)
In that work I'm moving some things into classes. A sub that request RuntimePermissions also made its way into a class, because it made sense. However, the result from the request end up in B4XPage_PermissionResult...
May I ask you a question myself - if for Android 10 we need to make so many changes for write permissions as we see in many threads on this forum - what about backward compatibility?
I still have many customers who are using Android 8 or 9 and I don't want them to upgrade their phones to Android...
Buona sera a tutti, so di non essere l' unico che ha questo problema, ma i suggerimenti nei post che ho letto fino ad adesso, non hanno dato beneficio.
Mi sono accorto che appare quando carico la libreria RuntimePermissions(V1.10)
ho aggiornato anche l'SDK, ma nulla.
Qualcuno ha idea di come...
My app was fine but recently needed to target SDK 26 and now my app is not working on new devices.
Sub Process_Globals
'Get permission to write file
Private rp As RuntimePermissions
End Sub
Sub Activity_Create(FirstTime As Boolean)
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
I have this code in an activity:
Sub theButton_Click
' Have we permission to use camera?
Private rp As RuntimePermissions
Private havePermission As Boolean = True
If Not(rp.Check("android.permission.CAMERA")) Then
Msgbox("We need this permission because reasons so...
Hi...
First off, I've been using B4A for a while but by no means an expert. I love developing with B4A as it's fun. However, with the latest release, I've been having some issues with the RuntimePermissions library.
This is what I get when I hit the F5 button to start debugging: a dialog box...