Code example for ListFragment

Methods: getActivity, getListAdapter, onListItemClick

0
		getLoaderManager().restartLoader(0, null, this);
	} 
 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
 
		if (items == null)
			return; 
 
		String key = (String) getListAdapter().getItem(position);
		if (key == null)
			return; 
 
		String uri = items.get(key);
		if (uri == null)
			return; 
 
		MainActivity activity = ((MainActivity) getActivity());
		activity.loadUri(Uri.parse(uri));
	} 
 
	@Override 
	public Loader<Map<String, String>> onCreateLoader(int arg0, Bundle arg1) {