B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    
Mar 16, 2022   
(34 reactions) 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 Question About runtime permission - marcick    
Aug 4, 2016Just 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...)
RuntimePermissions1.CheckAndRequest("android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"...:targetSdkVersion="23"
And then I discovered I had to manage in runtime all the other dangerous permission, like write to external storage.
The question is: can I have the android-23 platform...
B4A Question RuntimePermissions - Sergey_New    
Jul 8, 2024When using RuntimePermissions, permission cannot be obtained:
AddManifestText(
<uses-sdk...
Private rp As RuntimePermissions
End Sub
Sub Globals
End Sub
Sub Activity_Create...
link: RuntimePermissions has Check and CheckAndRequest functions but I believe it needs a third and...
link:
And in the topic ExternalStorage you didn’t want to help me.
Learn the language and do YOUR JOB by...
link:
Learn the language and do YOUR JOB by yourself
That's exactly what I do. But it happens that c...
B4A Question How to get FileProvider working without entire RuntimePermission lib or entire com.android.support:support-v4 ? - JohnC    
Jan 4, 2023 that the shared file can be placed. This function is included in the RuntimePermission lib but including... the RuntimePermission lib is an included lib, which again adds 500k to the app.
I was then able to eliminate...
link: Ah, gotcha.
OK, switched over all references to just your lib and it's working great!
Thanks a...
link:
OK, the app started, so hump #1 good.
Then when I tried to pass the file to the installer and it g...
link: OK, the app started, so hump #1 good.
Then when I tried to pass the file to the installer and it ga...
B4A Question How to get "GetSafeDirDefaultExternal" value without RuntimePermissions lib? - JohnC    
Dec 21, 2022 location is perfect for my needs, but adding the RuntimesPermission lib (that provides... the RuntimePermissions lib to be added to the project?...
link: But, if I want to "share" that directory, I need FileProvider.
...
link: Well, I found out why the GetSafeDirDefaultExternal was added to the RuntimePermissions lib...
link: " without including all the other classes of the whole RuntimetimePermission lib?
You do not need...
B4A Question Is notification runtime permission supported in latest B4A? - Pendrush    
Oct 5, 2022   
(1 reaction)https://developer.android.com/develop/ui/views/notifications/notification-permission
https://yggr.medium.com/exploring-android-13-notification-runtime-permission-6e198bb5ae3b...
link: on android API level 31 and higher, you can check the alerts and reminders permission using...
link:
an you pass the string "android.permission.POST_NOTIFICATIONS" to CheckAndRequest...
link: can you pass the string "android.permission.POST_NOTIFICATIONS" to CheckAndRequest...
Other B4A-Bridge v2.14 - Runtime permissions - Erel    
Jun 7, 2016   
(4 reactions) Android 6 runtime permissions feature, so if you install it from an Android 6 device it will not ask for any permission during installation.
In fact it will not ask for any permission during runtime as well as it doesn't use any of the "dangerous" permissions.
I will post more information about runtime permissions before v6 is released.
Note that the Bluetooth feature was removed...
B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    
Oct 18, 2023   
(93 reactions) 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 Runtime permission splash screen - marcick    
Apr 13, 2018I wanted to put this in code snippet section but (altought it seems to work) I'm sure there are some concept error, so better some expert do some comments before.
I was trying to implement runtime permission, but I falled in a loop because permission CheckAndRequest is not a blocking code and several part of the app requires a permission.
So I have moved all my code in Main activity to a second activity MainRP. The new Main activity only ask in sequence all the permission you need. After...
B4A Question [Solved] File.DirRootExternal and RuntimePermissions - asales    
Mar 18, 2018I use File.DirRootExternal and File.DirDefaultExternal in my apps and I want to implement the RuntimePermissions.
To the DirDefaultExternal I use GetSafeDirDefaultExternal("") and works fine.
How I can change this code to use the RuntimePermissions?
MyDir = File.DirRootExternal & "/commom/"
Thanks advance for any tips....
Page: 1  
2  
3  
4  
5  
6  
7