How to take multiple photos before dismissing camera intent?

前端 未结 1 578
忘了有多久
忘了有多久 2020-11-28 08:35

I am trying to take multiple photos using the default device camera application launched through an intent (MediaStore.ACTION_IMAGE_CAPTURE). With the devices I am testing w

相关标签:
1条回答
  • 2020-11-28 09:37

    I discovered through the SDK documentation that there's an alternative intent action for the device camera that launches the camera in still image mode and does not exit until the user is finished with the activity:

    Intent intent = new Intent(
        MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
    this.startActivity(intent);
    

    Coupled with a ContentObserver this was exactly what I needed to accomplish.

    0 讨论(0)
提交回复
热议问题