[android-developers] Re: Possible to detect Menu key press, outside an activity?
The home screen is an Activity...
If you want to change how the MENU key is processed you can intercept it in PhoneWindowManager as it's done for HOME, but this is only possible if you write your own firmware.
On Wednesday, 14 March 2012 17:55:11 UTC-4, Olaf wrote:
-- On Wednesday, 14 March 2012 17:55:11 UTC-4, Olaf wrote:
So, I know that the Menu key is going away in 3.0, but I have an optional feature in mind for pre-3.0 devices. It relies on detecting a press of the Menu key, outside of my activities (from the home screen, for example). I've searched far and wide for a solution, and it seems that the Menu key can only be detected by using the KeyEvent methods within the Activity class (onKeyDown, etc). But those methods only function when the activity is in focus.
Before I give up on this feature, does anyone have ideas on how it can be done? Or let me know if it definitely can't. Thanks!
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home