Android Question Media store

Hi,

As I understand in android 10 (API 29) I can access removable sdcard (real sdcard) using android.provider.MediaStore.
Does anyone already used? Can you provide some example?

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
I guess the mediastoredata can be get with ContentChooser.

for all other cases; with the externalstorage class you can access external SDCard.
 
Upvote 0
I guess the mediastoredata can be get with ContentChooser.

for all other cases; with the externalstorage class you can access external SDCard.

Thanks for answering DonManfred.
My goal is filling up a list view when the activity is created with all audio files found in the device provided by the content chooser, but I can't understand how to extract all files found by content chooser .
Can I get some help with that?
 
Upvote 0
Thanks Edel,
But in API level 29 I can't access external SD card (as removable storage) it always return the phone storage, even after updated manifest file with read and write permissions.
I want to access the device storage but also the removable storage if is connected.
Maybe I'm missing some updates ?
In java File.ListRoots is a starting point for what I want. Is there semilar in B4X?

Thanks in advance
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
But in API level 29 I can't access external SD card (as removable storage) it always return the phone storage, even after updated manifest file with read and write permissions.
Exactly as explained in the tutorial: ExternalStorage - Access SD cards and USB sticks

Maybe I'm missing some updates ?
No.

In java File.ListRoots is a starting point for what I want. Is there semilar in B4X?
You cannot directly access sd cards. It doesn't matter which language you use.
You almost can no longer access the secondary storage.
Everything that you can do is explained in that tutorial.
 
Upvote 0
Top