I'm looking to implement a SQLite database in an Android project that I'm currently working on. To my surprise, it appears the only way to create this, is in the Activity code itself. (My last experience with Java and local databases was with Derby, which was a local file I had not created within the code.)
My question is, is there anything I can tap into that happens before the first Activity's onCreate()? I'll relate this back to Windows Form applications, where you can access Main() before launching the Form (Activity equivalent).
If I have to create the database within the program's code, I want to check to see if it already exists, only once, before the Activities start.
You can use the Application's onCreate method to run any code at the application start up (i.e. before any Activity).