Code example for ListFragment

Methods: getListAdaptersetListAdapter, getActivity, onCreate

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);
 
Stop searching for code, let great code find you!  Add Codota to your java IDE