I was able to get this to work by following post: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
The database gets placed in the assets folder and then during the createDatabase() gets copied into the "/data/data/yourpackagename/ databases/" folder. Modifying this, you can easily use it to export your database to the SD Card and import it as well. 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