runtime permissions


    Android Question Error when adding RuntimePermisions library

    Hello, I have a trouble with RuntimePermisions library, when added it, the compiler shows this error: c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.8.0\unpacked-core-1.8.0\res\values\values.xml:112: error: resource android:attr/lStar not found. error: failed linking references...
  2. M

    Android Question [B4X_Pages] Runtime Permission inside Classes (Wait For)

    Hi everyone, I'm moving part of my code done in a B4XPage into a Standard Class. In this code i've a Runtime Permission CheckAndRequest that requires the "Wait For" block Private Sub BeginBLEscan rp_ble.CheckAndRequest(rp_ble.PERMISSION_ACCESS_FINE_LOCATION) Wait For...
  3. captain hawak

    Android Question permission if deny by user

    hi i need if user click deny permission app loop ask permission but this code only from with first requset worked and after user click deny no work and just log >> sending message to waiting queue (activity_permissionresult) If p.Check(p.PERMISSION_READ_EXTERNAL_STORAGE) And...
  4. B

    Android Question dirrootexternal access in Android 11

    As you probably know, in Android 11, memory access is not possible through RunTime. What to do to get memory access in Android 11 in b4a? I do not have Android 12 to check if there is such a limit in Android 12? In general, give me the code that allows memory access in all possible versions of...
  5. M

    Android Question check runtime permission - how to determine if the user checked “Never ask again“

    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...
  6. A

    iOS Question Check Microphone permission

    Hi all. I have a question. My app needs to use a microphone to record a voice message to play it later. On the first start after installation it asks for a permission to use a microphone and if the use allows it it works fine. But what if the user on the first start allowed it and later for...
  7. rleiman

    Android Question [SOLVED] - Trapping the result of a permission request

    Greetings, I created a permission test app to see how it works and this simple app does ask the user for the READ_PHONE_STATE permission so I know the manifest editor is set up correctly but the flow of coding ignores the statements following the CheckAndRequest statement. #Region Shared Files...
  8. P

    Android Question RuntimePermissions CheckAndRequest

    Everything is working for two year until a update to B4A 10.2. Now when I call CheckAndRequest function form runtimePermissions library, I get this error: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/content/ContextCompat; I don't know how to fix that... any idea?
  9. a6000000

    I want The MqttChat Example in [B4XPages] with runtime permissions

    I want The MqttChat Example in [B4XPages] with runtime permissions Mqtt Example 4 or more Modules: [Main] - [B4XMainPage maybe a start button to Layout1] - [PageLayout1] - [PageLayout2] -...
  10. Alexander Stolte

    Android Question [B4X] B4XPages - how to handle PermissionResult

    I see that the B4XPages has a "PermissionResult" event, how i use it right?
  11. A

    Android Question How to check PERMISSION_ACCESS_BACKGROUND_LOCATION in runtimepermissions

    Hi. I am trying to check if the application has permission to access the location all the time. But with runtimepermissions I did not find a way to check if the permission for location in background is allowed or not (that is, if the user selected to allow only with the app in use or to allow...
  12. A

    Android Question runtime permission problem

    Hello, I tried to use runtime permission for PERMISSION_READ_CONTACTS: Sub Activity_Create(FirstTime As Boolean) rp.CheckAndRequest(rp.PERMISSION_READ_CONTACTS) wait for Activity_PermissionResult (Permission As String, Result As Boolean) <do something> End Sub But (on release...
  13. Dave O

    Android Question [solved] AudioStreamer and "not initialized" exceptions

    If you're trying to record audio using AudioStreamer (via the internal Audio library), and you're getting exceptions when you try to start recording ("uninitialized AudioRecord object"), it may be because of permissions - specifically runtime permissions. I downloaded Erel's AudioStreamer...
  14. A

    Android Question INTERNET and WAKE_LOCK permissions

    Hello, does anybody know, for the permission: android.permission.INTERNET and android.permission.WAKE_LOCK, Is it needed to use RuntimePermissions? (btw, what down it meen android.permission.WAKE_LOCK ?) Thanks in advance
  15. M

    Android Question Android 6 CheckAndRequest always return True

    Hi guys, I'm facing a weird problem while trying to understand Android's Runtimepermission. I've followed the Erel's tutorial here: It seems that does not matter what is the setting give to a resource...
  16. ilan

    Android Question Runtime permission Problem

    hi i have problems with Runtimepermission on B4A8+. when i check for the permission and also request it and the result was false the request is not done. the weird thing is that in DEBUG mode everything works fine but if i run it in release mode the check/request of the permission does only a...

    Android Question open failed: EACCES (Permission denied)

    Hello guys, I'm trying Erel's test app ( file from this thread, page 2) and having Permission Denied when choosing a photo from photo Gallery. I started searching for a solution and one of then pointed to add the following line to the project manifest...