I’d like to create a project which generates a sqlite database, which will eventually be used by an android application. I’d like to create this project as a standard java application, so I can hook it up to a build script etc. What’s a good way to go about doing this, so that the sqlite database I output is conformant with the way android sqlite classes expect to have it in?
I could create this util project as an android project, and then I have access to all the sqlite classes, but the output sqlite file would live on an emulator instance, right? And I’d have to fire up an emulator etc whenever I wanted to run the util, ugh.
Thanks
Why do you want create a separate Java project to create a SQLite database? There are graphical shells over SQLite out there. I personally like SQLiteStudio.
There’s nothing special about the way Android accesses them – SQLite is SQLite, the database format is the same on every platform. Create a new database file, create some tables in it, insert some data, then place it into an Android project and play with it.