title: Get Current Selected Item of Navigation Drawer in Android
body: <p>How can i get Current selected item of navigation drawer? My menu is stored in <strong>drawer_menu.xml</strong></p>
  
  <pre><code>navigationView = (NavigationView) findViewById(R.id.navigation_view);
      navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
          @Override
          public boolean onNavigationItemSelected(MenuItem item) {
              switch (item.getItemId()) {
                  case R.id.change_sec:
                      Intent intent_sec = new Intent(MainActivity.this, ClassDataProvider.class);
                      startActivityForResult(intent_sec, 9);
                      drawerLayout.closeDrawers();
                      break;
                  case R.id.holiday_list:
                      Intent intent = new Intent(MainActivity.this, HolidayList.class);
                      startActivity(intent);
                      drawerLayout.closeDrawers();
                      break;
              }
              return true;
          }
      });
  </code></pre>