public boolean handleItemSelected(Context context,View view,int i,IDrawerItem iDrawerItem){
  i--;
  if (i >= 0 && i < MenuItem.values().length) {
    MenuItem item=MenuItem.values()[i];
    if (item != mLastSelectedItem) {
switch (item) {
case MENU_ITEM1:
        mNavigationManager.startMenu1();
      break;
case MENU_ITEM2:
    mNavigationManager.startMenu2();
  break;
case MENU_ITEM3:
mNavigationManager.startMenu3();
break;
case MENU_ITEM4:
mNavigationManager.startMenu4();
break;
case MENU_ITEM5:
mNavigationManager.startMenu5();
break;
default :
mNavigationManager.startMenu1();
break;
}
mLastSelectedItem=item;
closeDrawer();
return true;
}
}
return false;
}

public boolean handleItemSelected ( Context context , View view , int i , IDrawerItem iDrawerItem ) { i -- ; if ( i >= 0 && i < MenuItem . values ( ) . length ) { MenuItem item = MenuItem . values ( ) [ i ] ; if ( item != mLastSelectedItem ) { switch ( item ) { case MENU_ITEM1 : mNavigationManager . startMenu1 ( ) ; break ; case MENU_ITEM2 : mNavigationManager . startMenu2 ( ) ; break ; case MENU_ITEM3 : mNavigationManager . startMenu3 ( ) ; break ; case MENU_ITEM4 : mNavigationManager . startMenu4 ( ) ; break ; case MENU_ITEM5 : mNavigationManager . startMenu5 ( ) ; break ; default : mNavigationManager . startMenu1 ( ) ; break ; } mLastSelectedItem = item ; closeDrawer ( ) ; return true ; } } return false ; }
handles the menu item selected event
