Code example for SubMenu

Methods: add, getItem, setGroupCheckable

0
		mPlatformSubmenu.add(PLATFORM_MENU_GROUP, PLATFORM_GENESIS_ID, 0, "Genesis");
		mPlatformSubmenu.setGroupCheckable(PLATFORM_MENU_GROUP, true, true);
		mPlatformSubmenu.getItem(0).setChecked(true);
		 
		mGenreSubmenu = menu.addSubMenu("Genre");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_ALL_ID, 0, "All");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_ACTION_ID, 0, "Action");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_ADVENTURE_ID, 0, "Adventure");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_ARCADE_ID, 0, "Arcade");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_CHILDRENS_ID, 0, "Children's");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_FAMILY_ID, 0, "Family");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_FIGHTING_ID, 0, "Fighting");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_FLIGHT_ID, 0, "Flight");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_OTHER_ID, 0, "Other/Compilations");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_PUZZLE_ID, 0, "Puzzle");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_RACING_ID, 0, "Racing");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_ROLEPLAYING_ID, 0, "Role Playing");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_SHOOTER_ID, 0, "Shooter");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_SIMULATION_ID, 0, "Simulation");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_SPORTS_ID, 0, "Sports");
		mGenreSubmenu.add(GENRE_MENU_GROUP, GENRE_STRATEGY_ID, 0, "Strategy");
		mGenreSubmenu.setGroupCheckable(GENRE_MENU_GROUP, true, true);
		mGenreSubmenu.getItem(0).setChecked(true);
		 
		mNameSubmenu = menu.addSubMenu("Name");
		mNameSubmenu.add(NAME_MENU_GROUP, NAME_ALL_ID, 0, "All");
		mNameSubmenu.add(NAME_MENU_GROUP, NAME_09_ID, 0, "0-9");
		mNameSubmenu.add(NAME_MENU_GROUP, NAME_A_ID, 0, "A");