I have tried the most popular applications but no default shortcuts.
For instance pressing the button long time could be one. I am using Samsung Galaxy 4 and Android 5.0.1.
Is there any shortcut for a better flashlight in Android?
I have tried the most popular applications but no default shortcuts.
For instance pressing the button long time could be one. I am using Samsung Galaxy 4 and Android 5.0.1.
Is there any shortcut for a better flashlight in Android?
A non-root method I propose here requires AutoInput, Tasker (both are paid apps with full free 7 day trial), TeslaLED and AutoShortcut.
Setup all the apps and launch Tasker
Profile 1: Event → Plugin → AutoInput → Key → Configuration
Task for Profile 1: (Actions):
%Set
to 0
%Set
eq
0
Profile 2: Event → Plugin → AutoInput → Key → Configuration
Task for Profile 2: (Action): Variables → Variable Set: %Set
to 1
The explanation for the instructions can be found at the bottom of my answer for Prevent Accidental Reboots when holding down the power button.
As for the duration of long-press, the minimum I could satisfactorily test was one second (Wait action manages it). If your device is fast enough, you may have some good results for milliseconds. Configure Wait as per your wish.
Also, alike my other answer, the long-press for screen off would work if there involves a traditional hardware button (like Power button) which can be pressed and not simply touched.
Q & A