search

Home  >  Q&A  >  body text

camera - Android调用系统相机的时候怎么样一次拍多张照片?

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(intent, TAKE_PHOTO);



我现在是这么调用系统相机的,但是每次拍完一张就会自动关闭相机。
我希望一次可以拍多张,然后手动退出相机。


我现在是在onActivityResult再次调用以上代码,但是效果感觉不好,感觉这样多了一关一开相机的流程,每次拍完都会屏幕黑一会。

我感觉应该有某个字段可以设置成一次拍多张的。怎么做?
迷茫迷茫2772 days ago520

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 17:25:39

    You can check if ACTION_IMAGE_CAPTURE has any additional parameters. As far as I know, there should be none. If you want to shoot continuously, you have to write the camera yourself.

    reply
    0
  • Cancelreply