Code example for ResourceCursorAdapter

Methods: getCursor, notifyDataSetInvalidated

0
 
        if (limit > 0) {
            uriBuilder.appendQueryParameter("limit", String.valueOf(limit));
        } 
 
        Uri uri = uriBuilder.build();
 
        // finally, make the query 
        return mContext.getContentResolver().query(uri, null, selection, selArgs, null);
    } 
 
    public void close() { 
        if (DBG) Log.d(LOG_TAG, "close()");
        changeCursor(null); 
        mClosed = true;
    } 
 
    @Override 
    public void notifyDataSetChanged() { 
        if (DBG) Log.d(LOG_TAG, "notifyDataSetChanged");
        super.notifyDataSetChanged();