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:

However if you want to let the user choose an image then ContentChooser is your best option.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…