[Q] detect phone-call button pressed in android - Android Q&A, Help & Troubleshooting

Hi everyone,
I am developing a program for android. I need to detect when the button for phone-call (the green one usually in the down-left of the home screen). There is an api that does something similar for the back button (onBackPressed()), which can be used to customize the pressing of the back button with some action. I am wandering if there is something similar to onBackPressed() for the phone-call button, the one that opens the activity with keypad, logs, favorites, contacts...
Thanks for any help!

Related

[Q] How to change system buttons/shortcuts?

Hi guys!
Is it possible to change hardware buttons behaviour?
For example, the double press of the home button calls vlingo, what if I want it to call Google Voice Actions?
Or, a long press of the home button pops-up the list of recently used application, what if I'd like it to open an other task manager I installed from market?
Thank you so much!!
HomemyHome
This post may help
http://forum.xda-developers.com/showthread.php?t=1299923

[Q] Remap/change hardware button functionality?

Hi, I found some old threads about changing keylayout and stuff, but nothing recent (you know: since JB) and I just got the phone yesterday.
Right now, the phone does this:
Menu button press: menu
Menu button hold: Google Now (search)
Home button press: Home
Home button double-press: SVoice
Home button hold: Recent Apps
Back button press: Back
And I would like it to do this:
Menu button press: Recent Apps
Menu button hold: menu
Home button press: Home
Home button double-press: nothing
Home button hold: Google Now (search)
Back button press: Back
I'm kinda surprised that I can't find an app for this, as it really just seems like I'd be changing a little bit of text inside some config/layout files.
FWIW, I'm running completely stock but I rooted it yesterday. No ROM has been flashed, and I would love to keep it that way. Any help is greatly appreciated!
Biggidy biggidy bump
My thread got pushed off the front page faster than I could find Google Now on my new phone.
try this: http://forum.xda-developers.com/showthread.php?t=1882935
kenb00 said:
try this: http://forum.xda-developers.com/showthread.php?t=1882935
Click to expand...
Click to collapse
Thanx - nice find!
It still doesn't accomplish what I want, though... And I am a HUGE proponent of keeping things simple. My least favorite thing about Windows 8? All those muthereffin gestures that you need to memorize. It's not simple, and you have to completely relearn how to use an OS that you've been using for ages.

[Q]Long Press/2 Quick-Press Home behavior - Responsible file?

Hey all...
So, with latest 6.1.B.1.96 update for Sony Xperia S, the home button behavior has changed...
Previously, to go to home, you just had to press once, and to open Recent Apps list, long press home button. Now, though, it has changed to:
Single Press: Home
Long Press: Google Now
Douple Press: Recent Apps
I've been looking forward onto how to trade the Long press and douple press behaviors (Long Press: Recent Apps, and Douple Press: Google Now), but I have no idea how. I know it is coded in some file (obviously), but I have no idea where.
So, my question is: Which file, and where is generally responsible for button behavior?
I think I can progress further without any more help, but if I can't, I will ask again here...
Thanks everyone for help

Is there anyway to map a hardware button (Vol Up) to a specific touch area?

Hello guys,
I'm playing PUBG on S9+ Exynos and have trouble shooting while aiming.
Is there anyway to map the Volume UP button to the touch screen where the shoot icon is so I can shoot with the pointing finger while aiming and moving with 2 thumbs like on consoles?
Non-root method please
you need BxAction (or some other app that can remap hardware buttons. BxAction can remap Vol up/down and Bixby), tasker, and auto input.
- Use bxaction to map the button you want to a Tasker task (let's call it ShootGunTask, for example)
- in Tasker's ShootGunTask, go to the plugin and choose autoInput. Then input the display coordinate if the icon
I use something very similar to what you want in Telegram. When I'm in telegram app, short clicking Bixby button clicks the "send voice note" button. Effectively turning my phone into a walkie-talkie.
monkeyhandler said:
you need BxAction (or some other app that can remap hardware buttons. BxAction can remap Vol up/down and Bixby), tasker, and auto input.
- Use bxaction to map the button you want to a Tasker task (let's call it ShootGunTask, for example)
- in Tasker's ShootGunTask, go to the plugin and choose autoInput. Then input the display coordinate if the icon
I use something very similar to what you want in Telegram. When I'm in telegram app, short clicking Bixby button clicks the "send voice note" button. Effectively turning my phone into a walkie-talkie.
Click to expand...
Click to collapse
hey can you please explain more ?

task button long press

Hi community, i'm looking a way to activate the long press functionality using the task button (the one next to home that is not back button). I just update my phone Xiaomi to android 8.1, i use a few aplications (critical for me) that require a long press on that button, i imagine that is some config missing on build.prop
Remember, always attack ideas, never people.

Categories

Resources