Camera.open() returns null

后端 未结 3 912
粉色の甜心
粉色の甜心 2020-12-16 11:15

When I call mCamera = Camera.open() it returns null, what could be causing this? My device is the Nexus 7.

I already have the permissions set in my

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 11:59

    For those who's testing an app on Android 6.0+, make sure that you have implemented Runtime Permission. Because simple permission in your AndroidManifest file is not enough.

提交回复
热议问题