Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android external sdCard DCIM folder path

I need the DCIM folder path from the external sdCard if it is present. I have observed that this path changes according to the manufacturer of the device ("/storage/extSdCard", "/storage/SdCard", "mnt/storage/extSdCard", ...)

Is there any Android api that would give me the path irrespective of the device?

like image 319
Mayur More Avatar asked Sep 29 '22 11:09

Mayur More


1 Answers

Try out with

String m_path = Environment.getExternalStoragePublicDirectory(
            Environment.DIRECTORY_DCIM).getAbsolutePath();

For the more details about the storage file structure you check my Blog

like image 79
GrIsHu Avatar answered Oct 03 '22 06:10

GrIsHu