是否可以为默认的相机应用程序设置快门回调

时间:2016-06-25 13:00:21

标签: android

我知道我可以通过

调用默认的相机应用程序
    Intent callCameraApplicationIntent = new Intent();
    callCameraApplicationIntent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);

    File photoFile = null;
    try {
        photoFile = createImageFile();

    } catch (IOException e) {
        e.printStackTrace();
    }

    callCameraApplicationIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile));

    startActivityForResult(callCameraApplicationIntent, ACTIVITY_START_CAMERA_APP);

但我希望在用户拍摄图像时执行操作......这是可能的 或者我是否需要在自己的应用程序上实现相机预览?

1 个答案:

答案 0 :(得分:2)

如果通过执行操作,您的意思是您想要更改相机应用的行为,则不能。您需要创建自己的自定义相机应用程序。

相关问题