Path to android dcim folder

Is there a way to get the DCIM path (it can be on the SD card or on the device) at the Api 7 level? Environment.DIRECTORY_DCIM is only available from api level 8

+3
source share
2 answers

I think the DCIM directory is never in the internal storage (My HTC Legend does not even take photos without an SD card present). The Environment.DIRECTORY_DCIM variable is just the string "DCIM" ref .

The reason for storing images in / DCIM is compatibility with card readers (such as printers) that expect images to be available in / DCIM, so I don't think it makes sense to have it in internal memory.

(sd-card) :

File rootsd = Environment.getExternalStorageDirectory();
File dcim = new File(rootsd.getAbsolutePath() + "/DCIM");
+7

SD- - . - android .

( , )

0

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


All Articles