hardware key shortcuts help - Nexus 5 Q&A, Help & Troubleshooting

Looking for a way to use hardware buttons on my nexus 5 to start apps, flashlight etc. For example, if I long press the power button while the phone is off, it will launch voice search, if I triple click power button, flashlight turns on. Long press on volume up skips to next song, long press on volume down lauches directly into camera app,etc.
Any insight would be much appreciated.

Related

Anyway to map " long press hangup button as power on/off?

I am looking for a way to map "long press hangup button as power on/off, 'cause I think this makes more sense when using the universal in laptop mode, you don't have to find your way to press the power button on the bottom.
I've tried AE button plus and no dice
Assign an app like "poweroff" to the hold button
I just searched for a freeware on pocketpcfreewares and found this. So, a little search on the web does not hurt
http://pocketpcfreewares.com/en/index.php?soft=329
try this : http://www.vijay555.com/index.php?Releases:VJKeyPress

Turn on the phone from sleep without pressing power button

Ok, the story is, my phone goes to sleep every 30 secs to save battery. And since I'm still very excited about it, I turn it on quite often, just to check . And the only way to turn on from sleep (as far as I know) is pressing the power button. Well, that means that button will be pressed a lot! I'm just worrying that it will soon have problems. It would be much cooler if we can touch some Android button down there, Home button for example, to turn on the phone. Do you know anyway to do that?
PS: I tried to google as well as search through out this forum, but the keywords are pretty common, so it's really hard though.
I wouldn't want the capacitive buttons activating my phone, think of all the butt-dialing
I think Widget Locker allows for any hardware button to wake up the device, so then you'd be able to distribute the fun between your volume rocker and the power button.
Widget locker does allow the use of the volume rocker to wake up the phone.
a short term fix or you might be to got o settings-->Applications-->Development-->Stay awake....
so as long as you are charging the screen will not sleep. dont forget to change the setting back if you walk away for a bit... or go to bed
Thanks guy. I think the volume button is good enough
Rumur said:
Widget locker does allow the use of the volume rocker to wake up the phone.
Click to expand...
Click to collapse
thanks rumur, i going to give widget locker a try.
i hate it must reach for power button to wakeup!
i like "Simply Lockscreen", it also turns on cappy with volume buttons.
give it a try
On a similar note, do you all have any app tips that will allow me to do something special with the volume button while the screen is off (maybe long press or double click, or press both volume buttons at once) that will in turn toggle silent/vibrate on and off?

Problems wuth long press power button and volume

I make CyanogenMod 10 for my device. Official firmware - android 4.1.1. I have serious problems with the processing of pressing the power button and volume buttons.
When I press the power button, the phone starts to behave inappropriately. It appears when i try to unlock: not always the first time gets unlocked, you need a short press that the attempt was successful. And if you say I want to call the power menu, long clamp the power button and the phone will vibrate like crazy and there is a bunch of copies of windows power menu, you press back - phone go to the bootanimation ...
By the way with the volume button a similar situation! As is well known in the CyanogenMod is feature - volume buttons scroll through tracks. So if I clamp rocker to scroll through the forward / backward, flipping loops and skipped about 5-6 tracks!
In what could be the problem?
Surely someone had anything like that.
Sorry for my bad english)

[Resolved] [Q] How does a power button work

It's a simple general question how does the power button work I can't imagine it
I only can imagine power switches
but how does any device respond to the power button that turns on your phone while the same long press can open the power menu and not shut it down
Or lock your phone
John98Zakaria said:
It's a simple general question how does the power button work I can't imagine it
I only can imagine power switches
but how does any device respond to the power button that turns on your phone while the same long press can open the power menu and not shut it down
Or lock your phone
Click to expand...
Click to collapse
Physically, pressing the power button closes a circuit. While the button is pressed, electricity flows. When not pressed, there is no circuit. The software/firmware interprets between a short press (screen on/off) and a long press (device power on, power menu, etc) and performs the appropriate action. Same with the volume and other physical buttons for stuff like hard reboots, screenshots, etc.
Planterz said:
Physically, pressing the power button closes a circuit. While the button is pressed, electricity flows. When not pressed, there is no circuit. The software/firmware interprets between a short press (screen on/off) and a long press (device power on, power menu, etc) and performs the appropriate action. Same with the volume and other physical buttons for stuff like hard reboots, screenshots, etc.
Click to expand...
Click to collapse
Thank you

Flashlight turning on constantly. All gestures turned off.

At least 5 times a day I take my phone out of my pocket and the flashlight is on. I also accidentally turn it on a lot while pressing the power button. 8 have disabled every gesture in the menu, but can't figure out how to disable the flashlight from turning on when I long press the power button.
I'm rooted on the latest update. I'm willing to remove the flashlight completely if that's the only answer, but I was hoping there was a way to remap the power button long press. I've tried a few button remapping apps, but they haven't detected power button long press.
Danksh said:
At least 5 times a day I take my phone out of my pocket and the flashlight is on. I also accidentally turn it on a lot while pressing the power button. 8 have disabled every gesture in the menu, but can't figure out how to disable the flashlight from turning on when I long press the power button.
I'm rooted on the latest update. I'm willing to remove the flashlight completely if that's the only answer, but I was hoping there was a way to remap the power button long press. I've tried a few button remapping apps, but they haven't detected power button long press.
Click to expand...
Click to collapse
Sounds like you may have the active edge magisk module installed? That is not typical behavior for the power button. What rom are you running?
Sent from my Pixel 3a using Tapatalk
Thank you very much jmtjr278. Your reply lead me to the right direction. It was the Dark Tricks Xposed module. I had installed a few modules as soon as I got the phone, but never went through their settings, and completely forgot they were even there. Much appreciated.

Categories

Resources