Turn on Camera from widget in Nexus S and Galaxy SII

后端 未结 2 1753
孤独总比滥情好
孤独总比滥情好 2021-01-26 01:56

Problem Description

I am writing a simple Widget for Android Devices. When user press on the widget a Camera Flashlight must turn Off and On. My Widget works f

2条回答
  •  死守一世寂寞
    2021-01-26 02:27

    A bit late in response,however, the camera has to pass a surface on some devices in order to turn flash on. Given that surface view is not applicable, you need to implement a surface texture instead, available as of api 11

提交回复
热议问题