Android How to - Activity User Event
Users interact with your UI at two levels:
- the activity level and
- the view level.
At the activity level,
the Activity class exposes methods that you can override.
Some common methods that you can
override in your activities include the following:
- onKeyDown - Called when a key was pressed and not handled by any of the views contained within the activity
- onKeyUp - Called when a key was released and not handled by any of the views contained within the activity
- onMenuItemSelected - Called when a panel's menu item has been selected by the user
- onMenuOpened - Called when a panel's menu is opened by the user