Code example for ListFragment

Methods: getListViewonListItemClick

0
		savedFeedView.setAdapter(savedFeedAdapter);
	} 
 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		 
		Object item = getListView().getAdapter().getItem(position);
		FeedObject obj = null;
		if(item instanceof FeedObject) {
			obj = (FeedObject) item;
		} 
		else if(item instanceof SQLiteCursor) {
			obj = new FeedObject(((SQLiteCursor) item));
		} 
		 
		if (obj != null) {
			BusProvider.getInstance().post(new SavedFeedItemSelectedEvent(obj));
		} 
	}