Specifically, you want to look at the APIs for KeyEvent.
http://developer.android.com/reference/android/view/KeyEvent.html
and onKeyDown()
http://developer.android.com/reference/android/view/View.html#onKeyDown(int,
android.view.KeyEvent)
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU) {
// do your stuff here.
// make sure you return true to prevent the normal action
of the menu key.
return true;
}
return super.onKeyDown(keyCode, event);
}
On Nov 23, 2:28 am, sktniran <[email protected]> wrote:
> Hi friends,
>
> i have two spinner and three edit text fields in my form at top row.
> now i want to move these fields into menu which only pops up when you
> hit the menu button. is it there any way to get this? please help me.
>
> Thanks,
--
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