[Solved] Can’t go to a new activity from selected option from option menu
try this- public boolean onMenuItemSelected(int featureId, MenuItem item) { switch(item.getItemId()) { case R.id.item1: startActivity(new Intent(Help.this, Add_item.class)); return true; case R.id.item2: startActivity(new Intent(Help.this, Add_item2.class)); return true; case R.id.item3: startActivity(new Intent(Help.this, Add_item3.class)); return true; case R.id.item4: startActivity(new Intent(Help.this, Add_item4.class)); retuen true; } return super.onMenuItemSelected(featureId, item); } 1 solved Can’t go to a new activity from selected option … Read more