Code example for Fragment

Methods: onAttach

0
 
	} 
 
	@Override 
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		Log.i(TAG, "onAttach");
	} 
 
	@Override 
	public void onCreate(Bundle saved) {
		super.onCreate(saved);
		if (null != saved) {
			// Restore state here 
		} 
		Log.i(TAG, "onCreate");
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle saved) {