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

OC2PS picture OC2PS · Jun 7, 2013 · Viewed 38.4k times · Source

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...)

Answer

Alexander Kulyakhtin picture Alexander Kulyakhtin · Jun 7, 2013

Use getExternalStoragePublicDirectory()

with parameter DIRECTORY_PICTURES

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