Turn on flashlight when volume button is held
3
votes
2
answers
5482
views
I have Nexus 4 on Android 5.0 Lollipop, and I'm using Tasker. Is there any way to get the Flashlight to turn on when screen is off and the volume up or down button is held for 2-3 seconds? Then turn off the flashlight if the button is held again.
I know there's a
%SCREEN
variable for the screen part, but how can I detect if a volume button is held?
Asked by onetrickpony
(151 rep)
Apr 10, 2015, 08:32 AM
Last activity: Jan 31, 2017, 06:53 PM
Last activity: Jan 31, 2017, 06:53 PM