Code example for PagerAdapter

Methods: notifyDataSetChanged

            mRowIDColumn = newCursor.getColumnIndexOrThrow("_id");
            mDataValid = true;
            // notify the observers about the new cursor 
        } else { 
            mRowIDColumn = -1;
            mDataValid = false;
            // notify the observers about the lack of a data set 
        return oldCursor;
     * <p> Converts the cursor into a CharSequence. Subclasses should override this method to convert 
     * their results. The default implementation returns an empty String for null values or the default 
     * String representation of the value. </p> 
Connect your IDE to all the code out there  Get Codota for Java