Android Question read subfolder of folder file

Roberto P.

Well-Known Member
Licensed User
I read the list of files that I put in a subfolder of files, called img (contains images)

if I add the subfolder name to File.DirAssets by mistake.

upload_2015-6-25_9-10-15.png


here are the commands that I use

B4X:
Dim aPath As String    =        File.DirAssets & "/img"
    Log(aPath)
   
       
    aListaFiles     = File.ListFiles(aPath)
       
    For i = 0 To aListaFiles.Size - 1
        aFile = aListaFiles.Get(i)
       
   
        Log(aFile)
       
    Next
someone knows help


thanks
 

Roberto P.

Well-Known Member
Licensed User
thanks Erel
there is a folder where I can create a subfolder with images?
 
Top