I have an application that is composed of multiple activities. Is it
possible to override the menu button or the trackball button so that
when they are pressed I can display a dialog on the screen irrelevent
of which activity I am in?
I know this would be possible by adding the same code (below) into
each of the activities but was wondering if there was a way of
handling this event only once?
@Override
public boolean onCreateOptionsMenu(Menu menu) {
//Add menu items
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
return true;
}
Also does anyone know if it's possible to override the home button?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---