Code example for SimpleCursorAdapter

Methods: getItem

    public void onListItemClick(ListView l, View v, int position, long id) {
        // Get the title of the selected item and notify the callback 
        Cursor c = (Cursor) mAdapter.getItem(position);
        String title = c.getString(c.getColumnIndex(projection[1]));
    public Loader<Cursor> onCreateLoader(int id, Bundle args) {
        // create a new cursor loader that retrieves a list of all POIs. 
        return new PoiCursorLoader(getActivity(), projection);
    public void onLoadFinished(Loader<Cursor> loader, Cursor c) {
        // set the new cursor