@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case MENU_SETTINGS_ID:
    startActivity(new Intent(this,ActivitySettings.class));
  return true;
case MENU_ABOUT_ID:
showAbout();
return true;
}
return super.onOptionsItemSelected(item);
}

@ Override public boolean onOptionsItemSelected ( MenuItem item ) { switch ( item . getItemId ( ) ) { case MENU_SETTINGS_ID : startActivity ( new Intent ( this , ActivitySettings . class ) ) ; return true ; case MENU_ABOUT_ID : showAbout ( ) ; return true ; } return super . onOptionsItemSelected ( item ) ; }
called when an item of options menu is clicked
