Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out the camera images folder of an Android phone?

I am developing a camera app for Android.

One requirement is to save the photos taken to the device's default camera photo folder i.e. the folder in which Android's native camera stores it.

How can I figure out where the native camera is storing the photos it's taking - it is my understanding that this could be different for different makes (Samsung, HTC, Motorola, Sony...) and models (Galaxy Tab, Galaxy S4...)

like image 883
OC2PS Avatar asked Jun 07 '13 21:06

OC2PS


People also ask

Where the images are stored in camera?

Many camera phones and most digital cameras use memory cards having flash memory to store image data. The majority of cards for separate cameras are Secure Digital (SD) format; many are CompactFlash (CF) and the other formats are rare.

What is picture folder in phone?

Tech Easy. The photos you taken on phone camera will be saved under dcim folder in the internal storage or filemanager in android mobiles,so if you want to open gallery photos in file manager then click on DCIM folder and then click on camera to view taken photos and videos of your mobile.


1 Answers

Use getExternalStoragePublicDirectory()

with parameter DIRECTORY_PICTURES

(or, for other use cases, other similar parameters such as DIRECTORY_MOVIES)

like image 102
Alexander Kulyakhtin Avatar answered Oct 05 '22 01:10

Alexander Kulyakhtin