I am trying to get an image from the camera and save it directly to my app\'s private files directory. For security concerns, the image should not be publicly accessible at any
So, how can I securely save an image captured from the camera directly to my app's private files directory?
Take the picture yourself, using android.hardware.Camera
. There is no guarantee that the user will have a camera app available that knows how to save data to content://
Uri
paths. They are supposed to support them, but not all do. For example, the Google Camera app did not support a content://
Uri
for ACTION_VIDEO_CAPTURE
up through June 2016.