Camera.open() returns null

后端 未结 3 910
粉色の甜心
粉色の甜心 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:54

    Figured it out,

    You need to call Camera.open(0).

    THIS IS ONLY VALID AND WORKING ON THE NEXUS 7 device, as it only has one camera, so is only useful if targeting that device only.

提交回复
热议问题