Taking picture from non-activity

前端 未结 3 840
时光取名叫无心
时光取名叫无心 2021-01-02 22:23

I am using dummy surface in my code.It\'s working fine in Canvas HD running 4.2.1 but when the same app is deployed on my nexus 5/S 3 it gives RunTimeException on camera.tak

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 23:08

    This is not possible, you need an activity to display the camera in.

    Consider a transparent activity that just holds the camera view.

提交回复
热议问题