Code example for Cursor

Methods: isClosedrequery

0
   * 
   * @see ContentObserver#onChange(boolean) 
   */ 
  // renamed from Android source so as not to conflict with RobolectricWiringTest 
  protected void onContentChangedInternal() { 
    if (mAutoRequery && mCursor != null && !mCursor.isClosed()) {
      if (Config.LOGV) Log.v("Cursor", "Auto requerying " + mCursor + " due to update");
      mDataValid = mCursor.requery();
    } 
  } 
 
  private class ChangeObserver extends ContentObserver {
    public ChangeObserver() { 
      super(new Handler());
    } 
 
    @Override 
    public boolean deliverSelfNotifications() { 
      return true; 
    }