Android camera freezes after taking one photo

后端 未结 6 1470
我在风中等你
我在风中等你 2021-01-04 00:34

I\'m doing one project with camera and after taking one photo camera freezes and u have to finish the activity and recall it again to take another photo, how can I take phot

6条回答
  •  难免孤独
    2021-01-04 01:11

    Do any image processing in a background AsyncTask. This will allow your UI Activity to continue on and take another picture.

    Edit: I cannot delete an accepted answer so please see stoefin's answer below. Calling camera.startPreview() before taking the next photo works for him.

提交回复
热议问题