Java Code Examples for android.database.sqlite.SQLiteDatabase.isDbLockedByCurrentThread()

The following are Jave code examples for showing how to use isDbLockedByCurrentThread() of the android.database.sqlite.SQLiteDatabase class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Pocket-Plays-for-Twitch   File: Service.java   Source Code and License Vote up 4 votes
private static boolean isDbSafe(SQLiteDatabase db) {
	return db.isOpen() && !db.isReadOnly() && !db.isDbLockedByCurrentThread();
}