Code example for FragmentActivity

Methods: getSupportFragmentManager, setTitle

0
		if(OKUser.getCurrentUser() != null){ 
			Intent showProfile = new Intent(OKLeaderboardsActivity.this, OKUserProfileActivity.class);
			startActivity(showProfile);
		} 
		else{ 
			Intent loginIntent = new Intent(OKLeaderboardsActivity.this, OKLoginActivity.class);
			startActivity(loginIntent);
		} 
	} 
 
	private void showLeaderboardsList() 
	{ 
		OKLog.d("Show leaderboards list"); 
 
		if(leaderboardsFragment == null) {
			leaderboardsFragment = new OKLeaderboardsFragment();
		} 
 
		if(!leaderboardsFragment.isVisible()){
 
			android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beginTransaction();