"The Room persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite."
Room Persistence Library Guide
So I came up with this method
public static boolean isDbExist(Context context)
{
final String DATABASE_NAME = "tippie";
final String DB_PATH = context.getDatabasePath(DATABASE_NAME + ".db").getAbsolutePath();
SQLiteDatabase db;
try
{
db = SQLiteDatabase.openDatabase(DB_PATH, null,
SQLiteDatabase.OPEN_READONLY);
db.close();
} catch (SQLiteException e) { return false; }
return true;
}
which always return false.
Is there any way to check whether Room Database has been initialized?