Android Question WRITE_EXTERNAL_STORAGE permission

Sergey_New

Well-Known Member
Licensed User
Longtime User
How can I set this permission if targetSdkVersion 33, and then create a “MyApplication” folder?
With targetSdkVersion 29 it was easy.
 

Sergey_New

Well-Known Member
Licensed User
Longtime User
I only need to create a folder with the application name given. I don’t understand where you can insert this name in example Externalstorage ?
 
Upvote 0

alfaiz678

Active Member
Licensed User
I only need to create a folder with the application name given. I don’t understand where you can insert this name in example Externalstorage ?​
When you use the Externalstorage Library and summon the SelectDIR event, it will open a dialog box that allows the user to determine the virtual folder that the application can always access without asking the user to select the folder again, unless the folder or application is deleted.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
In the Externalstorage example I added a button to read the created folder named "123".
B4X:
Private Sub Button1_Click
  Dim lstFiles As List = File.ListFiles(File.DirRootExternal & "/123")
  ToastMessageShow("Number of files: " & lstFiles.Size, True)
End Sub
Regardless of whether there are files in this folder, lstFiles.Size=0.
What did I do wrong?
 

Attachments

  • ExternalStorage.zip
    4.9 KB · Views: 2
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…