我试图通过android摄像头捕获的图像保存在自定义位置。我的代码如下所示:防止通过android摄像头捕获的图像出现在图库中
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
File f = File(android.os.Environment.getExternalStorageDirectory(), "test.jpg");
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri.fromFile(f));
startActivityForResult(intent, SUB_ACTIVITY_CAMERA_PREVIEW);
图像被保存到指定的位置,但它也被保存到这是造成它在画廊中显示的默认照片文件夹。有什么建议么?
[删除相机意向照片拍摄后的图库图像]可能的副本(http://stackoverflow.com/questions/6390163/deleting-a-gallery-image-after-camera-intent-photo-taken) – 2017-01-12 20:16:09