B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    Mar 16, 2022   (34 reactions)   tags: RuntimePermission, runtime permissions, B4A Runtime Permissions, Runtime, SDK, B4A support for runtime permissions. The nice thing about runtime permissions is that the user is not... to approve "dangerous" permissions at runtime. Luckily most permissions are not... deal with all cases anyway. As a general rule, you shouldn't call RuntimePermissions.Check from... button that is inside the Logs tab: A very common mistake is to request a permission at runtime... RuntimePermissions.GetSafeDirDefaultExternal("") instead of File.DirDefaultExternal... B4A Tutorial Android Bluetooth / BluetoothAdmin Tutorial - Erel    Aug 31, 2020   (17 reactions) a "dangerous" permissions (see the runtime permissions tutorial for more information). Note that you need to add the permission in the manifest editor: AddPermission(android.permission...-bluetooth-chat-example.119014/#content Tutorial was rewritten in April 2018. We will create a chat example....PERMISSION_ACCESS_FINE_LOCATION) Wait For Activity_PermissionResult (Permission As String, Result As Boolean) If Result = False Then ToastMessageShow("No permission...", False) Return End... B4A Tutorial DBUtils - Android databases are now simple! - Erel    Jul 3, 2017   (14 reactions)   tags: DButils, SQLite, DB It depends on the following libraries: JSON, RuntimePermissions, SQL and StringUtils. Make sure to add the following snippet to the manifest editor: AddManifestText( <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" /> ) See RuntimePermissions tutorial for more information: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content... 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 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 Tutorial Background location tracking - Erel    Jul 3, 2024   (51 reactions)   tags: Longrunningaoo, background clock alive, B4A Background location, gps, B4A with targetSdkVersion = 34. This update required several changes: New non-dangerous permission: AddPermission(android.permission.FOREGROUND_SERVICE_LOCATION) With the above change the service can be started from... the ACCESS_BACKGROUND_LOCATION permission. This is a special permission and it is granted in the settings app. We can only... service and it is impossible to do without the ACCESS_BACKGROUND_LOCATION permission. So the solution... have the permission and then starts the service with a call to StartForegroundService sub. Note that this sub doesn... B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    Nov 1, 2024   (46 reactions) . Simple to work with and doesn't require permissions. Possible alternative to the external storage permission, which is mostly no longer available. RuntimePermissions.GetSafeDirDefaultExternal - A folder on the secondary storage, where you app can access without permissions. The path is a bit... providers. Very useful and doesn't require permissions. ExternalStorage - Allows accessing external... a folder, your app can read and write from that folder. Doesn't require any permission. Not all... B4A Tutorial [B4X] OkHttpUtils2 with Wait For - Erel    Dec 25, 2025   (59 reactions)   tags: image, wait, Download, Http MySql, Wait For, ws parameter (read more in the tutorial about resumable subs). The same sub can be called multiple times and... B4A Tutorial [B4X] B4XPages - Cross platform and simple framework for managing multiple pages - Erel    Dec 25, 2025   (81 reactions) 440642051 B4XPages is a library that serves two purposes: 1. Make it simple to develop B4A apps by solving almost all of the challenges involved with Android complex activities life cycle. B4XPages makes B4A behave more similar to B4J and B4i where the new "B4XPage" element is a regular object that is never paused, never destroyed, can be accessed from anywhere and easy to work with. 2... Page: 1   2   3   4   5   6   7   |