Code example for FragmentActivity

Methods: finish, setResult

0
	public void pBackForResult(int resultCode, Bundle bundle) {
		Intent intent = new Intent();
		if (bundle != null) {
			intent.putExtras(bundle);
		} 
		setResult(resultCode, intent);
		finish(); 
	} 
 
	/** 
	 * Back Activity. 
	 *  
	 * @param cls 
	 * @param bundle 
	 * @see class、class#method 
	 * @author lizhipeng 
	 */ 
	public void pBackToActivity(Class<?> cls, Bundle bundle) {
		Intent intent = new Intent();
		if (bundle != null) {
			intent.putExtras(bundle);