I hope to get the default photo catalog made by the camera in android.
I think code A can do this, but is /storage/sdcard0/DCIMdisplayed in the log,
but actually my photos taken by the camera are stored in a folder /storage/extSdCard/DCIM
How can I get the default photo catalog made by the camera in android? Thank!
Code A
File dir10 = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
Log.e("MainActivity", "getExternalStoragePublicDirectory() 10:" + dir10.toString());
More details
It seems that the default location for storing photos taken by the camera is set by the user, sometimes it's a memory card, sometimes it's an SD card. I hope I know what storage location the user has selected for storing photos taken by the camera.

source
share