Android Question (Solved) Path to a file saved in the Download folder

Bladimir Silva Toro

Active Member
Licensed User
Longtime User
Hi

I want to know how I can in B4A get the path to a file saved in the Download folder inside the internal storage. (see picture)

I appreciate the help you can give me.

1579029611306.png
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
    Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result = False Then Return
    
    Dim l As List = File.ListFiles(File.Combine(File.DirRootExternal,"Download"))
    If l.IsInitialized And l.Size > 0 Then
        For i=0 To l.Size-1
            Log(l.Get(i))
        Next
    End If
 
Upvote 0
Top