1

Is there an intent that takes pictures and doesn't save them automatically to the gallery? I'm currently using android.provider.MediaStore.ACTION_IMAGE_CAPTURE.

1 Answer 1

2

You can set the destination file uri with the following extra :

intent.putExtra(MediaStore.EXTRA_OUTPUT,<Uri>);

The file must be writable. once you finished with your file, simply delete it, and it won't appear in the gallery

if you want to keep the file on the sd, without having it visible in the gallery, you can simply change the extension of it, "file.tmp" will never show in the gallery.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.