Please write this :
switch (item.getItemId()) {
case R.id.Logout:
startActivity(new Intent(MenuActivity.this, Logout.class));
break;}
return true;
instead of :
switch (item.getItemId()) {
case R.id.Logout:
startActivity(new Intent("com.project.myAndroid.Logout"));
break;}
return true;