Thank you Todd S.!
It worked great for me.
I still think it's strange to have to import a file through a
bytestream.

On 23 fév, 13:18, "Todd S." <[email protected]> wrote:
> I was able to get this to work by following post:
>
> http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-and...
>
> Thedatabasegets 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
> yourdatabaseto the SD Card and import it as well.
>
> On Jan 19, 6:12 am, TheGlad <[email protected]> wrote:
>
>
>
> > Hello, fellow developers!
> > I'm trying to bind a pre-populateddatabase(.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 thedatabaseinside 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to