Code example for ListFragment

Methods: getArguments, onSaveInstanceState

0
		return view;
	} 
 
	@Override 
	public void onSaveInstanceState(Bundle outState) {
		outState.putAll(getArguments() != null ? getArguments() : new Bundle());
		super.onSaveInstanceState(outState);
	} 
 
	@Override 
	public Loader<Cursor> onCreateLoader(int id, Bundle args) {
 
		String[] cols = new String[] { Audio.Genres._ID, Audio.Genres.NAME };
 
		String where = MusicUtils.getBetterGenresWhereClause(getActivity());
 
		Uri uri = Audio.Genres.EXTERNAL_CONTENT_URI;
 
		return new CursorLoader(getActivity(), uri, cols, where, null,
				Audio.Genres.DEFAULT_SORT_ORDER);
	}