Can I force my application to launch the default Camera rather than offering the 'Complete action using' list?

前端 未结 5 649
一个人的身影
一个人的身影 2021-01-05 23:29

I\'m using the intent new Intent(MediaStore.ACTION_IMAGE_CAPTURE); to capture an image for use in my application. I have two applications installed on my de

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 23:48

    I'm not sure what you are trying to accomplish is portable across all devices. One goal of Android is to allow the easy replacement of activities that service requests such as image capture. That being said, if you only wish to do this for your device, you could simply set the component name in the intent to the media capture activity's name.

提交回复
热议问题