Code example for CursorAdapter

Methods: notifyDataSetChanged

0
 
  private class MyDataSetObserver extends DataSetObserver {
    @Override 
    public void onChanged() { 
      mDataValid = true;
      realCursorAdapter.notifyDataSetChanged();
    } 
 
    @Override 
    public void onInvalidated() { 
      mDataValid = false;
      realCursorAdapter.notifyDataSetInvalidated();
    } 
  } 
 
}