Page 1 of 1

Trigger on Power button pressed

Posted: 18 Apr 2016 10:46
by Wibbly
Is there a trigger that can be built to fire when the Power button is pressed (short), even when the phone is locked and unrooted?

I'm thinking this could be used as a "Panic Button" for a flow that sends alerts when an elderly person needs help - better than having to unlock the phone and find/press a widget.

Idea would be that the power button would have to be pressed x times in succession to fire off the alert (SMS and/or email to selcted contacts).

Re: Trigger on Power button pressed

Posted: 18 Apr 2016 11:05
by Wibbly
I will also try one of these
http://www.ebay.co.uk/itm/222088944710

Hoping pressing the button will be detectable directly by Automagic as some kind of media related event...

Re: Trigger on Power button pressed

Posted: 18 Apr 2016 18:49
by Martin
Detecting the power button usually requires a rooted device. You could try to detect screen on/off events in response to the power button.
The button of a wired headset and also presses of a Pressy-like button can often be detected with trigger Media Button Event. Use action Reregister Media Button Receiver when an audio player handles the button instead of Automagic.

Re: Trigger on Power button pressed

Posted: 18 Apr 2016 20:06
by Wibbly
Thanks Martin