I am using Room API to implement a DB in my Android app. It seems that every time I load my app it tries to create the database again and again. Is there any way to restrict
Try this
if (!db.exists()) { // Database does not exist so copy it from assets here Log.i("Database", "Not Found"); } else { Log.i("Database", "Found"); }