Code example for FragmentActivity

Methods: onPostCreate

0
	// These are the minor lifecycle methods, you probably won't need these 
	// //////////////////////////////////////////////////////////////////////////// 
 
	@Override 
	protected void onPostCreate(Bundle savedState) {
		super.onPostCreate(savedState);
		String answer = null;
		// savedState could be null 
		if (null != savedState) {
			answer = savedState.getString("answer");
		} 
		Log.i(TAG, "onPostCreate"
				+ (null == savedState ? "" : (RESTORE + " " + answer)));
 
	} 
 
	@Override 
	protected void onPostResume() { 
		super.onPostResume(); 
		Log.i(TAG, "onPostResume");
	}