Using hardware key as TRIGGER

Post your questions and help other users.

Moderator: Martin

Post Reply
gjorgidxc
Posts: 1
Joined: 21 Jul 2015 17:58

Using hardware key as TRIGGER

Post by gjorgidxc » 21 Jul 2015 18:06

Hi, I'm new to this app and all automation apps, so I have a noob question for you guys. I'll try and explain my situation.

I have a Xperia S with dedicated camera button, but because I'm using a costume ROM, the camera button is not assigned for anything, so I found a Xposed Module, that remaps keys, and I have done exactly that. I remapped the Camera button to open the camera app when the device is locked, and I want to use Automagic to turn on the screen and unlock the device so that I can use the camera. I've searched the interweb for a solution and I cannot find any. I think I have to use Commands but I'm not familiar with that kind of thing. (Guess I'm asking for a little tutorial on how to do this)

Any help would be greatly appreciated.
Thanks :)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Using hardware key as TRIGGER

Post by Martin » 22 Jul 2015 18:19

Hi,

Does the Xposed module allow to send an intent when a button is pressed?
If not, you might be able to handle the key press with a trigger Command Output and command getevent. It will require some experimentation to find the device but should work on a rooted device.
This post contains some useful information: BUTTON Pressed-Trigger
You can also search the forum for keyword getevent since this was discussed for some devices in the past.

Regards,
Martin

Post Reply