//called when hardware button "Menu" clicked
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}
and then this
@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_options:
startActivity(new Intent(this, EditPreferences.class));
break;
case R.id.menu_about:
Dialog dialog = new Dialog(getApplicationContext());
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);//NO TITLE :)
dialog.setContentView(R.layout.menu_about);
dialog.setCancelable(true);
dialog.show();
break;
default:
break;
}
//return true;
//return false;
return super.onMenuItemSelected(featureId, item);
}
using debug i see i enter the switch case R.id.menu_about, but dialog.show() doesn’t do anything
the dialog just won’t show, i tried using standart AlertDialog too, no luck either
Try to change:
to