D dataglove New Member Jun 17, 2020 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2020 #2 See the first search result https://www.b4x.com/android/forum/pages/results/?query=sd+card Upvote 0
D dataglove New Member Jun 18, 2020 #3 Erel said: See the first search result https://www.b4x.com/android/forum/pages/results/?query=sd+card Click to expand... 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
Erel said: See the first search result https://www.b4x.com/android/forum/pages/results/?query=sd+card Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2020 #4 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. Upvote 0
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.
D dataglove New Member Jun 19, 2020 #5 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... 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
B Brian Dean Well-Known Member Licensed User Longtime User Jun 19, 2020 #6 even a simple app fails to compile unless apk =28 Click to expand... 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
even a simple app fails to compile unless apk =28 Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2020 #7 It has nothing to do with B4A version. This is an Android restriction. Everything is explained here: https://www.b4x.com/android/forum/threads/externalstorage-access-sd-cards-and-usb-sticks.90238/ Upvote 0
It has nothing to do with B4A version. This is an Android restriction. Everything is explained here: https://www.b4x.com/android/forum/threads/externalstorage-access-sd-cards-and-usb-sticks.90238/
D dataglove New Member Jun 21, 2020 #8 Erel said: It has nothing to do with B4A version. This is an Android restriction. Everything is explained here: https://www.b4x.com/android/forum/threads/externalstorage-access-sd-cards-and-usb-sticks.90238/ Click to expand... Ok understand so is it possible do redirect the output from chooser to an array and format the filelist to the screen myself Upvote 0
Erel said: It has nothing to do with B4A version. This is an Android restriction. Everything is explained here: https://www.b4x.com/android/forum/threads/externalstorage-access-sd-cards-and-usb-sticks.90238/ Click to expand... Ok understand so is it possible do redirect the output from chooser to an array and format the filelist to the screen myself
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2020 #9 Have you ran the example: ExternalStorage - Access SD cards and USB sticks ? It shows a list of files. Upvote 0
Have you ran the example: ExternalStorage - Access SD cards and USB sticks ? It shows a list of files.