B4A Question GetSafeDirDefaultExternal in Android 13 ?? - Tjitte Dijkstra    
Aug 10, 2023My topography app ATLAS11 makes via GetSafeDirDefaultExternal a map in which the user can put new information (Self made maps / self mad short music / self made info on a city in the register etc...
link: Maybe because we have enabled the developers option on the Android phone and thus disable a number o...
link: I see it with my windows 10 and samsung a14...
link: I thought that you should be able to see all the Android/data folders when connected to a Windows de...
B4A Question How to get "GetSafeDirDefaultExternal" value without RuntimePermissions lib? - JohnC    
Dec 21, 2022I am developing an app that I want to be as small as possible.
Using the GetSafeDirDefaultExternal... this property) adds 500k to my app size.
Is there some other way to get this value without requiring...
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: FileProvider for GetSafeDirDefaultExternal...
B4A Question Why Can not Work RuntimePermissions.GetSafeDirDefaultExternal In Android 13 - Snger    
Nov 17, 2024RuntimePermissions.GetSafeDirDefaultExternal This feature does not work in Android 13+ why?
I hope to solve this problem soon...
link: thankyou A lot...
link: use it. Best to use File.DirInternal = XUI.DefaultFolder
A relevant and elaborated flow chart...
link: safedefaultexternal as string = rp.GetSafeDirDefaultExternal("")
log("my safedefaultexternal...
B4A Question Is GetSafeDirDefaultExternal Really as Safe as the Name Says - Mahares    
Jun 3, 2018To enforce run time permissions it is recommended to use GetSafeDirDefaultExternal if you do not want to use DirInternal, but is it really safe? I can still use a file manager, drill down to Android...
link: you to use this folder. Unlike File.DirDefaultExternal which requires a permission which...
link: If something is labeled 'Safe', it must be protecting you from some harm. What is the harm...
link: Safe to write there without special Permission.
It is no indicator to be encrypted or somehow...
B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    
Mar 16, 2022   
(34 reactions).DirDefaultExternal or File.DirRootExternal.
However there is a simple workaround for this.
1. Use RuntimePermissions.GetSafeDirDefaultExternal("") instead of File.DirDefaultExternal... this is that GetSafeDirDefaultExternal doesn't require any permission on Android 4.4+ (API 19) and....GetSafeDirDefaultExternal without explicit permission although they should. It it therefore recommended to set android... a folder other than the app's default external folder.
Notes & tips:
- You can only request...
Other [please test] RuntimePermissions.GetSafeDirDefaultExternal - Erel    
Nov 2, 2016 rp.GetSafeDirDefaultExternal("") <> File.DirDefaultExternal Then
Log("Please post: " & rp.GetSafeDirDefaultExternal(""))
Log(File.DirDefaultExternal...
link: Thank you @Lahksman...
link: Tested now also with a Samsung Galaxy S3 Mini with 4.1.2:
Nothing interesting...
link: Reconfigured my phone, normally my SD-card is my primary storage, just switched that to internal sto...
B4A Question XUI.DefaultFolder vs rp.GetSafeDirDefaultExternal("") not finding files that are there - Robert Valentino    
Mar 30, 2022 that is using runtimepermissions.GetSafeDirDefaultExternal
to use xui.defaultfolder (reason for... I print them out
XUI.DefaultFolder
RuntimePermissions.GetSafeDirDefaultExternal
The above seems... name>) I am told it does not exists
But if I use File.Exists(rp.GetSafeDirDefaultExternal("...
link: were suppose to use rp.GetSafeDirDefaultExternal("") and now we are suppose to use xui...
link: .GetSafeDirDefaultExternal("") are totally different from each other. You need to copy them from rp....to xui...
B4A Question Ho to read available space on GetSafeDirDefaultExternal ? - amorosik    
Aug 26, 2021 instructions:
Dim rp As RuntimePermissions
log_dir = rp.GetSafeDirDefaultExternal ("App1")
How to read how much space is still available on the drive where the log_dir resides?...
link: calculations)
Public Sub GetFolderTotaleSpace(Folder As String) As Long
Dim jo As JavaObject...
link: .DefaultFolder)) 'displays: 20,999 MB for mine
Public Sub GetFolderFreeSpace(Folder As String...
link: More "general".
Public Sub GetFolderFreeSpace(Folder As String) As Long
Dim jo...
B4A Question GetSafeDirDefaultExternal and manifest question - Scantech    
Apr 17, 2021AddManifestText(
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="19" />
)
My app manifest is android:minSdkVersion="21" and I am using GetSafeDirDefaultExternal.
Do I really need the above code in my manifest?...
link:
Do I really need the above code in my manifest?
No.
It has no effect on API 20+ (Android 5+), which is above the minimum version yo...
link: Yes, you need it: The explanation for this is that GetSafeDirDefaultExternal doesn't require...
B4A Question GetSafeDirDefaultExternal with errors - Scantech    
May 31, 2019This is my first time experimenting with GetSafeDirDefaultExternal. I have a device where...
DirFile = rp.GetSafeDirDefaultExternal("Test APP")
'If no database file then...
link: ?
All the app folders will be deleted. This includes rp.GetSafeDirDefaultExternal.
I've just tried...
link: I recommend using File.DirInternal unless there is a special reason to use the secondary storage...
link: I recommend using File.DirInternal unless there is a special reason to use the secondary storage....
Page: 1  
2  
3  
4