List of usage examples for android.database.sqlite SQLiteConnectionPool close
public void close()
From source file:io.requery.android.database.sqlite.SQLiteDatabase.java
private void dispose(boolean finalized) { final SQLiteConnectionPool pool; synchronized (mLock) { if (mCloseGuardLocked != null) { if (finalized) { mCloseGuardLocked.warnIfOpen(); }/*from ww w .jav a 2 s . co m*/ mCloseGuardLocked.close(); } pool = mConnectionPoolLocked; mConnectionPoolLocked = null; } if (!finalized) { synchronized (sActiveDatabases) { sActiveDatabases.remove(this); } if (pool != null) { pool.close(); } } }