Code example for SimpleCursorAdapter

Methods: getCursor, getView

0
	} 
 
	@Override 
	public final View getView(final int position, final View convertView,
			final ViewGroup parent) {
		final View view = super.getView(position, convertView, parent);
 
		final int feedId = getCursor().getInt(0);
		view.setOnClickListener(new OnClickListener() {
			@Override 
			public void onClick(final View v) {
				handler.onFeedSelected(feedId);
			} 
		}); 
 
		return view;
	} 
}