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).
Trigger on Power button pressed
Moderator: Martin
Re: Trigger on Power button pressed
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...
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
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.
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.