Page 1 of 1

Flashlight trigger

Posted: 08 Dec 2014 14:00
by nicsergio
It would be possible to implement a trigger for flashlight on/off?
Lollipop implements the command directly from the quick settings, the trigger would be comfortable to replicate the functionalities I did with commanding automagic (timeout, flashlight off shaking the phone, etc.).
Thanks

Re: Flashlight trigger

Posted: 08 Dec 2014 17:55
by Martin
Hi,

Unfortunately I did not see an API in Android that would allow to check whether the flashlight is on or not. I'll add it to the todo-list when I find something.

Regards,
Martin

Re: Flashlight trigger

Posted: 09 Dec 2014 21:43
by nicsergio
thanks for the reply