Code example for CursorAdapter

Methods: getCursor

0
mImageLoader.bind(this, imageView, url);
    } 
 
    private String getString(Object item, int columnIndex) {
        Cursor cursor = getCursor();
        if (item == cursor) {
            return cursor.getString(columnIndex);
        } else { 
            return null; 
        } 
    } 
 
    public String getArtistName(Object item) {
        return getString(item, COLUMN_ARTIST_NAME);
    } 
 
    public String getArtistGenre(Object item) {
        return getString(item, COLUMN_ARTIST_GENRE);
    }