Re: [android-developers] Detecting hardware button on Android mobile
I have a feeling what you mentioned is the case.
On Monday, 2 September 2013 23:43:08 UTC+10, harsh wrote:
-- I have implemented functions onKeyUp(...), onKeyDown(...). None of these functions get called when I press the PTT button. Unfortunately the phone is not rooted so there are not many options.
Thanks for your input.
On Monday, 2 September 2013 23:43:08 UTC+10, harsh wrote:
Try this on your own risk.Or if you want it very bad and your device is rooted, though I m not sure it will work or not, you can change the keycode for PTT key in Generic.kl in /system/user/keylayout/. What it will do is escape all the checks for the PTT's Keycode and will reach the window in focus.If you are not able to catch the key event, in all probabilities, this PTT key has been handled before it reaches to the window in focus. PhoneFallbackEventHandler or PhoneWindowManager, one of them is not your friend and is holding back the event.You will require a custom firmware for your phone if you want to get that done.
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home