문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top