On Wed, Mar 14, 2012 at 5:55 PM, Olaf <[email protected]> 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 cannot detect a MENU button press except from the foreground activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

