开发者

How to change behaviour of android.provider.MediaStore.ACTION_IMAGE_CAPTURE

开发者 https://www.devze.com 2023-02-20 12:44 出处:网络
I am using android.provider.MediaStore.ACTION_IMAGE_CAPTURE to capture images, however on pressing Ok button the camera activity is closed and I received the result in onActivityResult. Is there a way

I am using android.provider.MediaStore.ACTION_IMAGE_CAPTURE to capture images, however on pressing Ok button the camera activity is closed and I received the result in onActivityResult. Is there a way the image c开发者_如何转开发apture activity can be kept running after pressing OK button. At the moment I am starting it again through my onActivityResult function, is it possible that I can keep the same image capture activity running after a successful image capture.


I don't think this is possible with the ACTION_IMAGE_CAPTURE intent. Instead you will have to control the camera preview in SurfaceHolder. Here is one example I have found - How to Program the Google Android Camera to Take Pictures.

0

精彩评论

暂无评论...
验证码 换一张
取 消