K
K
Konstantin Lipatov2017-06-04 20:47:37
Android
Konstantin Lipatov, 2017-06-04 20:47:37

How to check if the database is already created?

There is a SQLite database. In onCreate activity, a database is created and filled with data through the parser. So that this parser does not work every time I open an activity, I want to check that the database has already been created. Please tell me how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-06-04
@Weys

Move this functionality to SQLiteOpenHelper.onCreate() .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question