B4A Class ExternalStorage - Access SD cards and USB sticks - Erel    
Nov 11, 2020   
(62 reactions).
The ExternalStorage class makes it simpler to work with SAF.
Usage:
1. Call ExternalStorage.SelectDir... instances of ExternalStorages. This field defines the file where the URI will be written to for future... access the secondary storage (File.DirRootExternal). This becomes relevant with newer versions... possible to directly access external storages.
The only way to access these storages is through...https://www.b4x.com/basic4android/images/SS-2018-03-05_11.16.42.png
Before we start:
External...
B4A Question Recursively copy folders and files from ExternalStorage to DirInternal and viceversa. - max123    
May 26, 2023-deletefolder.69820/#content
I have this sub to recursively copy folders and files from ExternalStorage... copy recursively folders and files from DirInternal to ExternalStorage.
Currently I do not tested...
link:
Only ExternalStorare (Storage.Root) with grant permissions and DirInternal are involved, no...
link:
I'm not sure that I understand the question. If you are using ExternalStorage then...
link: I'm not sure that I understand the question. If you are using ExternalStorage then...
B4A Question [Solved] ExternalStorage.ListFiles behaving unexpectedly - agraham    
Dec 16, 2018 Access Framework.
I am trying to use the ExternalStorage class but it is not behaving as I expect and... Storage_ExternalFolderAvailable
For Each f As ExternalFile In Storage.ListFiles(Storage.Root)
If f.Name = folder... & "FindFile = " & extfile.Name & CRLF
For Each g As ExternalFile In Storage...I need to find a known file in a known folder on the external SD Card and display it in an image... Long UK.jpg
ListFiles =Lat Long UK.jpg
for a known file
/storage/0000-0000/Maps OS 1000K/Lat Long...
B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    
Nov 1, 2024   
(46 reactions) providers. Very useful and doesn't require permissions.
ExternalStorage - Allows accessing external... folders are accessible with ExternalStorage in Android 11+. Specifically, root, Android/data and... the simpler version of ExternalStorage. Allows the user to choose the place where the file will be saved... storage permission, which is mostly no longer available.
RuntimePermissions.GetSafeDirDefaultExternal... MANAGE_EXTERNAL_STORAGE permission - mostly relevant to non-Google Play apps: https://www.b4x.com/android/forum...
B4A Question How to set Initial Folder in ExternalStorage library - mcqueccu    
Feb 9, 2025I need guidance on how to set initial directory in ExternalStorage library, Assuming I want to open "Root/Android/Media" directly for the User to select
Just like B4J (Filechooser.initialDirectory(......))...
link: It isn't possible....
B4A Question Loop bug? + Can't detect user Cancel in ExternalStorage - JohnC    
Nov 2, 2019Using the example in this post:
https://www.b4x.com/android/forum/threads/externalstorage-access-sd-cards-and-usb-sticks.90238/
I modified the PickFolder sub to include an "entry" log and an "exit" log tracing:
Sub btnPickFolder_Click
Log("Start SelectDir")
Storage.SelectDir(chkUsePreviouslySelected.Checked)
Wait For Storage_ExternalFolderAvailable
Log("Exit from SelectDir")
FoldersStack.Clear
EnterFolder(Storage.Root)
End...
B4A Question [Resolved] [ExternalStorage] LongClick!! - ivanomonti    
Mar 26, 2023ciao a tutti, sto usando questa libreria ExternalStorage ma ho bisogno di inviare il documento o la foto selezionata in stampa, ma vedo che il longclick non viene intercettato in quanto la listview... no come posso far diventare la mia app predefinita?
hello all, i'm using this ExternalStorage...
link: ListView1_ItemClick (Position As Int, Value As Object)
Dim f As ExternalFile = Value
'etc
Puoi aggiungere...
link: What do you mean that the longclick is not intercepted? is it that ItemLongClick event was not fired?
or try using xcustomlistview.
...
B4A Tutorial Google Maps - Erel    
Jul 7, 2025   
(36 reactions) be set after the permission is granted.
- v2.02 EXTERNAL_STORAGE permission removed. It is no longer...
B4A Question I am puzzled by a comment in the ExternalStorage example - agraham    
Mar 12, 2022In the ExternalStorage example
https://www.b4x.com/android/forum/threads/externalstorage-access-sd...)
Dim f As ExternalFile = Value
If f = UpItem Then
'....
Else
'The ExternalFile returned from ListFiles cannot be used directly.
'We need to...
link: the ExternalFile instances in ListFiles unusable and was eventually fixed.
Good catch!
I've removed it from...
link: ExternalStorage class that I had a hard time convincing Erel was actually there. It resulted in all...
B4A Class Manage External Storage - access internal external storage >= SDK 30 - agraham    
Nov 11, 2024   
(33 reactions) files on a storage device | Android Developers
As I will never have apps in the Play Store this worries me not one jot :p
The class uses code stolen from Erel's ExternalStorage class to provide a similar API - thank you Erel ?
ExternalStorage - Access SD cards and USB sticks | B4X Programming... the ManageExternalStorage class suggested in post #3 below.
in.Initialize("android.settings...
Page: 1  
2  
3  
4  
5