Code example for PagerAdapter

Methods: notifyDataSetChanged

0
			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(); 
		} 
		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.