Shake for light V2

by Bernhard Sommer

Version 3 (August 2, 2018)

Download (40 downloads)

Shake the device hard to activate the flashlight and again to deactivate it.
_________________
V2:
+ added check for active screen
+ added proximity check
- removed active call check (flow was never triggered during call)
• lowered shake limit to 40
_________________
V1: basic funktionality
• acceleration has to be between 45-55
• check for active call
• 2 second delay between shakes