Code example for ListFragment

Methods: getLoaderManager, onActivityCreated, setHasOptionsMenu

0
		return inflater.inflate(R.layout.notes_list, container, false);
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		setHasOptionsMenu(true);
		getLoaderManager().initLoader(0, null, this);
	} 
 
	@Override 
	public void onResume() { 
		super.onResume(); 
		getLoaderManager().restartLoader(0, null, this);
	} 
 
	// TODO: create Menu 
 
	private void createNote() { 
		Intent i = new Intent(getActivity(), NoteEdit.class);