B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    Mar 16, 2022   (33 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 Code Snippet Draw on top of other apps permission - Erel    Sep 5, 2023   (16 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 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 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 Code Snippet Notifications permission with targetSdkVersion = 33 - Erel    Jun 6, 2023   (23 reactions) There is a new "dangerous" (runtime) permission On Android 13+ devices required for showing notifications. When targetSdkVersion < 33, the OS will show the permission dialog... that targetSdkVersion >= 33 Private Sub CheckAndRequestNotificationPermission As ResumableSub... As RuntimePermissions rp.CheckAndRequest(rp.PERMISSION_POST_NOTIFICATIONS) Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) 'change to Activity_PermissionResult if non-B4XPages... B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    Oct 18, 2023   (91 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 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   (28 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 Library [class] Google Code Scanner - no permission, very simple to use, barcode scanning - Erel    Apr 24, 2024   (15 reactions) This solution is based on ML Kit (https://developers.google.com/ml-kit/vision/barcode-scanning/code-scanner). Instructions: 1. Open B4A Sdk Manager. Search for mlkit and install all items. 2. Also search for code-scanner and odml and install the two items. 3. Add to main module: #AdditionalJar: com.google.android.gms:play-services-code-scanner #AdditionalJar: kotlin-stdlib-1.6.10 #AdditionalJar:... B4A Question API 33 and Notification permission - Andrew (Digitwell)    Oct 11, 2022 @Pendrush posted this question about The new API 33 notification permission https://www.b4x.com/android/forum/threads/is-notification-runtime-permission-supported-in-latest-b4a.143340/#post-908302 At the time I didn't have a phone which was on Android 13, but I now do. I thought I would try to add the permission string to see what happens I created a little program which can call Check or CheckandRequest I have added AddPermission(android.permission.POST_NOTIFICATIONS) in the manifest... Page: 1   2   3   4   5   6   7   |