Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onOptionsItemSelected(MenuItem item) {
- int id = item.getItemId();
- if (id == R.id.nav_calendar) {
- Intent i=new Intent(this, Calendar.class);
- startActivity(i);
- }
- if (id == R.id.nav_info) {
- Intent i=new Intent(this, CarInfo.class);
- startActivity(i);
- }
- if (id == R.id.nav_expenses) {
- Intent i=new Intent(this, Expenses.class);
- startActivity(i);
- }
- if (id == R.id.nav_map) {
- Intent i=new Intent(this, Map.class);
- startActivity(i);
- }
- if (id == R.id.nav_service) {
- Intent i=new Intent(this, Service.class);
- startActivity(i);
- }
- return super.onOptionsItemSelected(item);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement