Android Question Files in DirAssets

LucaMs

Expert
Licensed User
Longtime User
For the first time (I think) I listed by code the files contained in DirAssets folder.

B4X:
For Each NomeFile As String In File.ListFiles(File.DirAssets)
    If NomeFile.EndsWith(".jpg") _
        Or NomeFile.EndsWith(".jpeg") _
        Or NomeFile.EndsWith(".png") Then
        mlstFloors.Add(NomeFile)
    End If
Next



I don't know why I get also 2 files of an old project; I have not opened this old project for weeks.

Watching right now my own code, there may also be other files, since the code filters them according to their extension.


P.S. ... and it is so:
upload_2018-5-20_10-53-43.png


The only file of the current project is "laymain.bal"; I don't know where others come from ("charge1.mp3.unpacked"??????????? Never added to any project; and probably not even "charge1.mp3").


P.P.S. "charge1.mp3" was a file of a member I tried to help :) I helped ;)
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
Nice; today they are different:

upload_2018-5-21_8-24-30.png


(only two of those file are used in the current project, avatarmario.jpg and laymain.bal; the others seem to be folders, since they do not have extension.
Hm... but it's not just a question of types, files or folders, since yesterday were also listed "normal" files)
 
Upvote 0
Top