Android Question Get file list

dataglove

New Member
Hi This is my first post. I am completely new to the Android Platform.I have been programming for years (Windows platform)
I am trying to get a file list from an SD card on an Asus phone(but has to work on all phones). Prior to upgrading to Target SDK 28 I had this working.
Unfortunately the gods @ google rejected my App. My requirement is to get a filelist from SD card DCIM/WaveFiles
I just want to capture the data to a list without any fancy GUI . It seems different manufacturers access the internal SD Card differently.
God I thought windows was bad , Android is 20 x worse
 

dataglove

New Member
Thank you Erel for your prompt reply, I have already seen that link thankyou , however I don't want to use that method I would prefer not to open the dialogue method just read a list of files into an array from example DCIM/wavfiles then I can index into the array get the full path name and load the wavefile into a player. The plan is to have forward and backward buttons that allows user to select a file from the arraylist, I had this working on an earlier version of Android but since upgrading (to pass play stores requirements )its not finding the SD card.
 
Upvote 0

dataglove

New Member
The tutorial makes it clear that the only way to access real external storages is through this dialog.

If you want to access File.DirRootExternal then you can request the relevant permission at runtime and then access it.
Hi Erel this is not an option I did have the functionality before upgrading. I have tried installing android 4.42(19)tools /sdk but even a simple app fails to compile unless apk =28 I have edited the manifest settings is this something locked in B4A 9.90 I now dont care about publishing on playstore just getting it to build
 
Upvote 0

Brian Dean

Well-Known Member
Licensed User
Longtime User
even a simple app fails to compile unless apk =28

Some good news and some bad news. I have just run a compile on 9.90 with target sdk version =19. It worked fine (I knew it would). That is the good news. The bad news is that you must have a problem somewhere else.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…