Code example for FragmentActivity

Methods: getMenuInflater, getPackageName, getResources

0
			return true; 
		} //else if (item.getItemId() == R.id.io_openkit_menu_profileButton) { 
		else if (item.getItemId() == profileButtonId) {
			showProfileActivity(); 
			return true; 
		} else if(item.getItemId() == leaderboardButtonID) {
			showLeaderboardsList(); 
			return true; 
		} else if (item.getItemId() == achievementsButtonID) {
			showAchievementsList(); 
			return true; 
		} 
		else { 
			return super.onOptionsItemSelected(item);
		} 
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu)
	{ 
	    MenuInflater inflater = getMenuInflater();