method called after release() exception unable to resume with android camera

后端 未结 9 649
無奈伤痛
無奈伤痛 2020-11-29 00:14

While developing a camera app I\'ve encountered an exception that only happened when I switch to other app (onPause() for my app).

01-15 17:22:1         


        
9条回答
  •  借酒劲吻你
    2020-11-29 00:58

    The docs clearly say that camera.release() releases all camera resources. After this call camera reference can not be used any more.

    If you want to use camera again you have to acquire it via a open(int) method.

    It's all described in the camera docs.

提交回复
热议问题