Darano

Untitled

Nov 29th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. @Override
  2. public boolean onOptionsItemSelected(MenuItem item) {
  3.  if (item.getItemId() == R.id.app) {
  4.   Toast.makeText(MainActivity.this, "About", Toast.LENGTH_SHORT).show();
  5.   return true;
  6.  } else if (item.getItemId() == R.id.exit) {
  7.   Toast.makeText(MainActivity.this, "Exit", Toast.LENGTH_SHORT).show();
  8.   return true;
  9.  } else if (item.getItemId() == R.id.call_admin) {
  10.   Toast.makeText(MainActivity.this, "01784067744", Toast.LENGTH_SHORT).show();
  11.   return true;
  12.  }
  13.  return super.onOptionsItemSelected(item);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment