Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. boolean android.app.Activity.onOptionsItemSelected(MenuItem item)
  2.  
  3.  
  4. This hook is called whenever an item in your options menu is selected. The default implementation simply returns false to have the normal processing happen (calling the item's Runnable or sending a message to its Handler as appropriate). You can use this method for any items for which you would like to do processing without those other facilities.
  5.  
  6. Derived classes should call through to the base class for it to perform the default menu handling.
  7.  
  8. Parameters:
  9. item The menu item that was selected.
  10. Returns:
  11. boolean Return false to allow normal menu processing to proceed, true to consume it here.
  12. See Also:
  13. onCreateOptionsMenu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement