B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    Mar 16, 2022   (34 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   (18 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 Code Snippet Notifications permission with targetSdkVersion = 33 - Erel    Jun 6, 2023   (24 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 SMS and CALL_LOG permissions are no longer available - Erel    Oct 10, 2018   (14 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 Library [class] Google Code Scanner - no permission, very simple to use, barcode scanning - Erel    Jul 18, 2024   (32 reactions) This solution is based on ML Kit (https://developers.google.com/ml-kit/vision/barcode-scanning/code-scanner). Instructions: 1. Add to main module: #AdditionalJar: com.google.android.gms:play-services-code-scanner #MultiDex: True 2. Add to manifest editor: CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase) 'add if not already there '******* google code scanner AddApplicati... 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 Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    Oct 18, 2023   (93 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 Tutorial Google Maps - Erel    Jul 7, 2025   (36 reactions)   tags: Maps, GoogleMaps, GPS, Erel, Map, Google Mpas As RuntimePermissions End Sub Public Sub Initialize End Sub Private Sub B4XPage_Created... MapFragment1_Ready gmap = MapFragment1.GetMap rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION) Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) If Result Or rp.Check(rp.PERMISSION_ACCESS_COARSE_LOCATION) Then gmap.MyLocationEnabled = True Else Log("No permission!") End If End Sub Updates - v2.50 - Required dependencies were... B4A Question [SOLVED] How to determine default browser on device - WITHOUT using android.permission.QUERY_ALL_PACKAGES - JackKirk    Aug 14, 2024   (3 reactions) I recently worked out how to use Erel's 2011 code: https://www.b4x.com/android/forum/threads/find-the-default-app-of-a-particular-type-of-intent.13580/post-76825 to determine the default browser in use on an Android device - see: https://www.b4x.com/android/forum/threads/solved-how-to-determine-default-browser-on-device.162506/ Unfortunately this seemed to require android.permission... and removed the android.permission.QUERY_ALL_PACKAGES - and it all works!!!!!... Page: 1   2   3   4   5   6   7   |