Code example for SubMenu

Methods: getItem

0
				return true;				 
			 
			case GENRE_ALL_ID:
				mGenreFilter = null;
				mHeaderGenre = "All";
				mGenreSubmenu.getItem(0).setChecked(true);
				new GetGamesListTask().execute();
				return true;	 
				 
			case GENRE_ACTION_ID:
				mGenreFilter = "&genre=action";
				mHeaderGenre = "Action";
				mGenreSubmenu.getItem(1).setChecked(true);
				new GetGamesListTask().execute();
				return true; 
				 
			case GENRE_ADVENTURE_ID:
				mGenreFilter = "&genre=adventure";
				mHeaderGenre = "Adventure";
				mGenreSubmenu.getItem(2).setChecked(true);
				new GetGamesListTask().execute();