0
            } 
        } 
        mCursor = newCursor;
        if (newCursor != null) {
            if (mChangeObserver != null) {
                newCursor.registerContentObserver(mChangeObserver);
            } 
            if (mDataSetObserver != null) {
                newCursor.registerDataSetObserver(mDataSetObserver);
            } 
            mRowIDColumn = newCursor.getColumnIndexOrThrow("_id");
            mDataValid = true;
            // notify the observers about the new cursor 
            notifyDataSetChanged(); 
        } else { 
            mRowIDColumn = -1;
            mDataValid = false;
            // notify the observers about the lack of a data set 
            notifyDataSetChanged(); 
        } 
Stop searching for code, let great code find you!  Add Codota to your java IDE