I've used sqlite in a Windows C/C++ environment before so I'm familiar with it but new to using it in the Android environment. Looking at some tutorials like Android SQLite Basics: creating and using a database, and working with sqlite3 | Screaming Penguin on how to use it and it seems pretty straight forward.
A question I have is that this creates a DB inside the OnCreate method of the activity which seems fine for the first run of the application, but I assume we should first see if the DB is already created before doing such a thing? What's the general practice around that? Is there maybe a way to make the DB get created on install of the application so the application itself when running will always have the DB?
A question I have is that this creates a DB inside the OnCreate method of the activity which seems fine for the first run of the application, but I assume we should first see if the DB is already created before doing such a thing? What's the general practice around that? Is there maybe a way to make the DB get created on install of the application so the application itself when running will always have the DB?