Code example for DataSetObservable

Methods: notifyInvalidated

0
	public void notifyDataSetChanged() { 
		mDataSetObservable.notifyChanged();
	} 
 
	public void notifyDataSetInvalidated() { 
		mDataSetObservable.notifyInvalidated();
	} 
	 
	@Override 
	public int getCount() { 
        if (mDataValid && mCursor != null) {
            return mCursor.getCount();
        } else { 
            return 0; 
        } 
	} 
 
	@Override 
	public Object getItem(int position) {
        if (mDataValid && mCursor != null) {
            mCursor.moveToPosition(position);