How to use camera flash/led as torch on a Samsung Galaxy Tab?

前端 未结 4 926
孤独总比滥情好
孤独总比滥情好 2020-12-02 12:59

I\'m facing to a problem with a Samsung Galaxy Tab. I want to use the camera flash as torch.

Does anyone know how to enable it ?

Hereby a code that works to

4条回答
  •  情话喂你
    2020-12-02 13:13

    Took me a while but I think you're missing a startPreview() there.

    After you do your Camera.open() and after you set the parametrs, do a mCamera.startPreview(). That should do the trick.

提交回复
热议问题