Code example for ListFragment

Methods: onCreate, setRetainInstance

0
	 
	 
	//*************************************************** 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.d(getClass().getSimpleName(), "ON CREATE avviato"); 
		this.setRetainInstance(true);
	} 
	  
	  
	//*************************************************** 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup parent,
			Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		this.fragmentAttached = true;
		 
		this.pageId = getArguments().getInt(MainLib.PAGE_ID);