Thanks, that was it.
Somewhat unrelated, but simple, question... how do I get the menu to
look like a list of items instead of the table format that it's
currently using?
On May 19, 9:29 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Returning true from onKeyDown() means "I handled the key event, ignore
> it." You are telling the system to ignore the key event. Your code
> should return false by default and true only in case 5 (note you
> should use the constatnts instead of hard coded values because the key
> codes might change.)
>
>
>
> On Mon, May 19, 2008 at 9:22 AM, kingkung <[EMAIL PROTECTED]> wrote:
>
> > 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?
>
> > Thanks,
>
> > James
>
> > public boolean onKeyDown(int keyCode, KeyEvent event)
> > {
> > switch (keyCode)
> > {
> > case 5:
> > //perform call function
> > break;
> > default:
> > super.onKeyDown(keyCode,event);
> > }
> > return true;
> > }
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
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]
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
-~----------~----~----~----~------~----~------~--~---