Code example for FragmentActivity

Methods: startActivityForResult

0
		Intent intent = new Intent();
		if (bundle != null) {
			intent.putExtras(bundle);
		} 
		intent.setClass(this, cls);
		startActivityForResult(intent, requestCode);
	} 
 
	/** 
	 * 带结果返回上一个activity, 配合pStartActivityForResult使用. 
	 *  
	 * @param resultCode 
	 * @param bundle 
	 * @see class、class#method 
	 * @author lizhipeng 
	 */ 
	public void pBackForResult(int resultCode, Bundle bundle) {
		Intent intent = new Intent();
		if (bundle != null) {
			intent.putExtras(bundle);
		}