Android Question listfiles dont work

marx95

New Member
hi, need a help....

suddenly, listfiles doesn't list, it only lists folders
I created a new project to test, and nothing either


Before it was normal, until something changed and stopped....
permissions???

Dim list As List = File.ListFiles(playerr.mp3Dir)
For i = 0 To list.Size - 1
mpList2.AddSingleLine(list.Get(i))
Next
 
Last edited:

marx95

New Member
Great greetings Erel, I've known b4 for two years, and I've been following your help on the forum... it's finally my turn

I use 2 voids, 'LPastas' to list the folders, which I list normally and 'LArqs' to list the files, before it worked normally but now it doesn't

LArqs use playerr.mp3dir to list files, but returns 0
B4X:
playerr.mp3Dir = "/storage/emulated/0/MP3/"
 
Upvote 0

marx95

New Member
No, dont need choose a file in a different folder... need just List a files

ContentChooser it wouldn't work for my project

Before it was listing the folders normally, but I changed a comma and it stopped, I don't know where I changed it, but it doesn't list anymore

I'm starting to think it's a bug in the platform, because I recompiled it using the backup .rar (when it worked) and it doesn't work either
 
Last edited:
Upvote 0
Top