Android Question File.ListFiles usage

Kris74

New Member
In my manifest i add this code:
B4X:
AddManifestText(
<uses-permission
  android:name="android.permission.WRITE_EXTERNAL_STORAGE"
  android:maxSdkVersion="30" />
)

B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    Dim mylist As List = File.ListFiles("/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Backups/")
    For Each s As String In mylist
        lstDice.AddSingleLine(s)
    Next
End Sub

In my Android i've files and dirs.
This code shows me only dirs. Why?
Thank you all for the beautiful B4A!
 

Kris74

New Member
Thanks. I'm a newbie, so I might ask silly questions. I need to edit some files in the internal storage that were created by another app. These files are obviously not in the folder where my app is installed. Does Android allow me to edit/delete files in another app's folder on the device's internal storage? Searching on the internet I understood that perhaps, in new devices, it is not possible to edit/delete files starting from an APP installed in another folder. Thank you!
 
Upvote 0
Top