public synchronized void close(){
  if (mIsInitializing)   throw new IllegalStateException("Closed during initialization");
  if (mDatabase != null && mDatabase.isOpen()) {
    mDatabase.close();
    mDatabase=null;
  }
}

public synchronized void close ( ) { if ( mIsInitializing ) throw new IllegalStateException ( "Closed during initialization" ) ; if ( mDatabase != null && mDatabase . isOpen ( ) ) { mDatabase . close ( ) ; mDatabase = null ; } }
close any open database object .
