Code example for ListFragment

Methods: getActivity, getListAdapter, onCreate, setListAdapter

0
	} 
 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		// Get the external storage directory. 
		this.mExternalDir = Environment.getExternalStorageDirectory();
 
		if (getListAdapter() == null) {
			// Assign the list adapter to the ListView 
			setListAdapter(new FileListAdapter(getActivity()));
		} 
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		if (savedInstanceState != null) {