I just got this to work yesterday, followed the following post: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
I was able to write a function that lets me overwrite the existing database used by the app, export the existing database to the SD card and import the exported database to the app. The database gets placed in the asset's folder and gets copied into the /data/data/ yourpackagename/databases folder when you run createDatabase(). Hope this helps. On Jan 19, 6:12 am, TheGlad <ali...@gmail.com> wrote: > Hello, fellow developers! > I'm trying to bind a pre-populated database (.db file) to my > application, so that I could use the data right away. I cannot, > however, figure out a way to: > 1) Store the .db file inside the application. > 2) Access the database inside the application. > > Please, can someone show easy-to-follow steps with code how to > approach it. > > Thanks A LOT!!! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en