B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    Mar 16, 2022   (32 reactions)   tags: RuntimePermission, runtime permissions, B4A Runtime Permissions, Runtime, SDK, B4A 1. Edit: In B4XPages the permission result event signature is: Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) 2. Important to read: https://www.b4x.com/android/forum... is lower than 23 then the standard permissions system will be used on all devices including Android 6... support for runtime permissions. The nice thing about runtime permissions is that the user is not asked for any permission when they install your application from Google Play. Instead they will be asked... B4A Question Handle multiple permission request - Shay    Jun 29, 2018   (2 reactions)   tags: SDK I have in my app multiple permission requests, such as: rp.CheckAndRequest(rp.PERMISSION_READ_CONTACTS) rp.CheckAndRequest(rp.PERMISSION_READ_CALL_LOG) rp.CheckAndRequest(rp.PERMISSION_CALL_PHONE) I wish that app will start only if the above will approve (since no point opening the app without it) what is the best way to handle such... B4A Code Snippet Draw on top of other apps permission - Erel    Mar 11, 2018   (15 reactions) Starting from Android 6 a special permission is required if you want to use the SYSTEM_ALERT_WINDOW permission. This permission is not related to the runtime permissions. You can put this code in a class to check whether your app has permission and open the settings page if needed: Sub... Public Sub GetPermission As ResumableSub If phone.SdkVersion >= 23 Then Dim settings... i.Initialize("android.settings.action.MANAGE_OVERLAY_PERMISSION", "package:" &... B4A Tutorial SMS and CALL_LOG permissions are no longer available - Erel    Oct 10, 2018   (12 reactions)   tags: #PAIN Google has changed their policy regarding the following permissions: READ_SMS, SEND_SMS, WRITE_SMS... messaging apps can use these permissions: https://support.google.com/googleplay/android-developer/answer... filter) 1. Note that you can send sms messages with an intent and without a permission: Dim In.... Adding a library doesn't add any permission. You can safely use the Phone library as long as you don't declare any of the above objects. 3. Click on the List Permissions button (in the logs tab... B4A Question About runtime permission - marcick    Aug 4, 2016 Just a confirmation if I'm doing correctly: I have declared in "configure paths" the android-23 platform. This because I want to manage a runtime permission in Android 6 and force the user to exclude the App from the battery optimization Sub Activity_Resume If GetAndroidApiLevel>...) RuntimePermissions1.CheckAndRequest("android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"... dangerous permission, like write to external storage. The question is: can I have the android-23 platform... B4A Library [B4X] BLE 2 - Bluetooth Low Energy - Erel    Jan 4, 2023   (26 reactions)   tags: Bluetooth, Bluetooth Low Energy, BLE the fine location permission in the manifest editor. 2. Request this permission with RuntimePermissions. Otherwise scanning will fail with a message visible in the unfiltered logs. BLE2... B4i. Updates: - Example updated with targetSdkVersion = 31. Note the permissions in the manifest editor: AddPermission(android.permission.ACCESS_FINE_LOCATION) AddPermission(android.permission.BLUETOOTH_SCAN) AddPermission(android.permission.BLUETOOTH_CONNECT) And requesting at runtime: Dim... B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    Jun 2, 2022   (78 reactions)   tags: runtime permission, sdk version, Targetsdk, SDK, B4A with backwards compatibility. I will explain it with an example. Google introduced the runtime permissions system in Android 6 (API 23). Requesting runtime permissions requires developers to update...) will run properly on an Android 8.0 device and it will not be required to request runtime permissions.... Alpha levels used as a mask. - 23 - runtime permissions (https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content) - 23 - Setting system settings require... B4A Question B4X RuntimePermissions Failing completely in 10.2 - MrKim    Sep 19, 2020 RuntimePermissions that I use are failing with the same error. This error occurs on RP.Check(RP.PERMISSION_WRITE_EXTERNAL_STORAGE) RP.Check(RP.PERMISSION_CALL_PHONE) and RP.Check(RP.PERMISSION_CAMERA) Android 29 manifest target 28. Pixel 3 XL Android Version 10. Build number is QQ3A.200805.001... at anywheresoftware.b4a.objects.RuntimePermissions.Check(RuntimePermissions.java:73) at java... PERMISSION_WRITE_EXTERNAL_STORAGE was failing as mentioned in the link above and it was a different... B4A Question [FIXED] [B4X] B4XPages - problem with Permissions (not CloseRequest as thought) - agraham    Jun 11, 2020 I'm playing with CloseRequest which I have placed in B4XMainPage on the ThreePagesExample project. This is an Android 10 device. 'Return True to close, False to cancel Private Sub B4XPage_CloseRequest As ResumableSub Dim sf As Object = xui.Msgbox2Async("Close?", "Title", "Yes", "Cancel", "No", Null) Wait For (sf) Msgbox_Result (Resu... B4A Question How to get "GetSafeDirDefaultExternal" value without RuntimePermissions lib? - JohnC    Dec 21, 2022 I am developing an app that I want to be as small as possible. Using the GetSafeDirDefaultExternal location is perfect for my needs, but adding the RuntimesPermission lib (that provides this property) adds 500k to my app size. Is there some other way to get this value without requiring the RuntimePermissions lib to be added to the project?... Page: 1   2   3   4   5   6   7   |