Query if Android database exists!

Viewed 88856

I have created a database for my android app which contains static data and does not require update/delete functionality thus when the app starts, I want to check if the db exists and if not then execute my dbAdapter class. I know its a simple if statement but I was just wondering the most efficient way to query whether the db exists.

Cheers

7 Answers

I have found an even simpler solution:

context.databaseList().contains("table_name")

Related