Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get an image only from DCIM directory

Tags:

android

I'm getting all images from SD card but now I only want to show the pictures taken with the camera (in the DCIM folder).

Is it possible to do that ?

like image 352
Harshit Rathi Avatar asked Oct 01 '13 09:10

Harshit Rathi


2 Answers

Try:

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath()
like image 172
Paresh Mayani Avatar answered Nov 12 '22 11:11

Paresh Mayani


Try this :

Environment.DIRECTORY_DCIM;

Official Doc

Here is a link for more info : Using Android’s external storage effectively and judiciously

like image 32
Harish Godara Avatar answered Nov 12 '22 09:11

Harish Godara