Code example for ListFragment

Methods: getLoaderManager, onDestroy

0
		return root;
	} 
	 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		getLoaderManager().destroyLoader(0);
	} 
	 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		 
		TextView pathView = (TextView)v.findViewById(R.id.bookmark_item_path);
		String   path     = pathView.getText().toString(); 
		File     file     = new File(path);
		 
		TextView pageView = (TextView)v.findViewById(R.id.bookmark_item_page);
		int      page     = Integer.parseInt(pageView.getText().toString());
		 
		mOnSelectFileListenr.onSelectedFile(file, page);