marx95 New Member Oct 15, 2023 #1 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: Oct 15, 2023
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
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2023 #2 Please use [code]code here...[/code] tags when posting code. What is the value of playerr.mp3Dir? Upvote 0
marx95 New Member Oct 16, 2023 #3 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
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/"
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2023 #4 The only folder that is directly accessible is XUI.DefaultFolder = File.DirInternal. If you want to choose a file in a different folder then use ContentChooser. Upvote 0
The only folder that is directly accessible is XUI.DefaultFolder = File.DirInternal. If you want to choose a file in a different folder then use ContentChooser.
marx95 New Member Oct 17, 2023 #5 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: Oct 17, 2023 Upvote 0
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
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2023 #6 Carefully read the changes starting with targetSdkVersion=29: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content Upvote 0
Carefully read the changes starting with targetSdkVersion=29: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content