Code example for FragmentActivity

Methods: finish, getApplicationContext, getSupportFragmentManager, startActivity

0
		ft.addToBackStack(null);
		ft.commit();
	} 
 
	private void complete() { 
		startActivity(new Intent(getApplicationContext(), ResultActivity.class).putExtra("data",
				((UserDataFragment) getSupportFragmentManager().findFragmentByTag(DATA_FRAGMENT_TAG)).getUserData()));
		finish(); 
		Log.d("test", "finish");
	} 
 
	/** 
	 * 가입 정보를 담은 fragment. activity lifecycle과 무관하게 유지되어야 함. 
	 *  
	 * @author kingori 
	 *  
	 */ 
	public static class UserDataFragment extends Fragment {
		private Map<String, String> userData = null;
 
		@Override