问题
I want to by pass save and delete option on taking image from Android Intent Camera, without using custom camera. Save image directly just capturing image.
回答1:
There is a "quick capture" mode in Android stock camera, at least in Android 5.0 and 5.1, it works as intended on Nexus but does not work on my Samsung phone, because of custom Samsung camera app. Also I'm not sure it will work on older versions of Android.
Test it from ADB shell:
adb shell am start -a android.media.action.IMAGE_CAPTURE --ez android.intent.extra.quickCapture 1
And Java code would be something like this:
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra("android.intent.extra.quickCapture", true);
来源:https://stackoverflow.com/questions/32479518/can-we-bypass-save-and-delete-option-in-intent-camera-for-taking-image-in-androi