> I am overriding onKeyDown in my activity, and calling > super.onKeyDown() on all values except for the "Call" button, which I > implement myself. > > The other buttons seem to work, but the Menu fails to load when I hit > the Menu button. What can I do to get around this?
> > public boolean onKeyDown(int keyCode, KeyEvent event) > { > switch (keyCode) > { > case 5: > //perform call function > break; > default: > super.onKeyDown(keyCode,event); > } > return true; > } I'm not sure this is the problem, but you probably should return the value of super.onKeyDown(keyCode,event); for the cases where you're not handling the key. Basically, if you're not handling the key, you want Android to use the exact same behavior as if you didn't have an onKeyDown() method in the first place. Right now, though, you're always returning true, which may or may not be what super.onKeyDown() would return if you weren't overriding it. If that doesn't clear up the problem, write back! -- Mark Murphy (a Commons Guy) http://commonsware.com The Busy Coder's Guide to Android Development -- coming in June 2008! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---