How to ship an Android application with a database?

Problems with Canvas, OpenGL, etc...

How to ship an Android application with a database?

Postby Jack Hard » Thu Apr 11, 2013 7:07 am

If your application requires a database, and comes with built in data, what is the best way to ship that application?

1) Precreate the sqlite database and include it in the apk?

2) Include the SQL commands with the application and have it create the database and insert the data on first use?

The drawbacks I see

1) Possible sqlite version mismatches might cause problems, and I currently don't know where the database should go and how to access it.

2) It may take a really long time to create and populate the database on the device.

Your thoughts? Pointers to documentation regarding any issues would be great.
Jack Hard
Junior Developer
Junior Developer
Posts: 11
Joined: Fri Dec 07, 2012 5:36 am
Location: Ahamedabad(Gujarat)


Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 2 guests