How to get image only from DCIM catalog

I get all the images from the SD card, but now I want to show only the pictures taken by the camera (in the DCIM folder).

Can this be done?

+6
source share
3 answers

Try:

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath() 
+12
source

Try the following:

 Environment.DIRECTORY_DCIM; 

Official document

Here is the link for more information: Efficient and wise use of Androids external storage

+3
source

Of course you can try:

 new File(Environment.getExternalStorageDirectory(), "DCIM") 

You can also use something like Environment.DIRECTORY_DCIM

0
source

Source: https://habr.com/ru/post/955006/


All Articles