Default Directory Locations?

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I know about the directory aliases like File.DirDefaultExternal, etc.

Is there a way to find standard default directories where things are stored on each device? For example, where pictures from the camera are stored.

On one of my devices this directory is mnt/sdcard/DCIM on another device it may be something else depending on preferences, SDCards, and the phase the moon.

Is there a way in Android and/or B4A to request the standard directory where items are placed?

Thanks,
Barry.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The default folders are: File.Combine(File.DirRootExternal, xxx)
Where xxx is:
Music/ - Media scanner classifies all media found here as user music.
Podcasts/ - Media scanner classifies all media found here as a podcast.
Ringtones/ - Media scanner classifies all media found here as a ringtone.
Alarms/ - Media scanner classifies all media found here as an alarm sound.
Notifications/ - Media scanner classifies all media found here as a notification sound.
Pictures/ - All photos (excluding those taken with the camera).
Movies/ - All movies (excluding those taken with the camcorder).
Download/ - Miscellaneous downloads.

However if you want to let the user choose an image then ContentChooser is your best option.
 
Upvote 0
Top