我们可以绕过意图相机中的保存和删除选项来获取Android中的图像吗?

Vin*_*ngh 2 android android-camera

我想通过传递保存和删除选项从Android Intent Camera拍摄图像,而不使用自定义相机.直接保存图像只捕获图像.

pel*_*lya 6

Android相机中有一个"快速捕捉"模式,至少在Android 5.0和5.1中,它可以在Nexus上使用,但由于定制的三星相机应用程序无法在我的三星手机上使用.此外,我不确定它是否适用于旧版Android.

从ADB shell测试它:

adb shell am start -a android.media.action.IMAGE_CAPTURE --ez android.intent.extra.quickCapture 1

Java代码将是这样的:

Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra("android.intent.extra.quickCapture", true);
Run Code Online (Sandbox Code Playgroud)