I placed a file with my data in the assets directory.  You can then
access the file like this:

context.getResources().getAssets().open("session.txt")

and import your data.  I also run this import process in a separate
thread in the background.  That way the user isn't impacted or needs
to wait.

Jeff
http://trackmaster.trackaroo.com

On Jul 10, 5:56 am, André <[email protected]> wrote:
> Or, if you are working with the SQLiteOpenHelper base class, then you
> could export your DB to a text file (including CREATE TABLE, INSERT,
> etc.), place this in your "assets" folder and import the file in the
> overridden "onCreate" method of SQLiteOpenHelper.
>
> -- Andréhttp://android.rabold.org
>
> On 10 Jul., 14:26, Cezar Augustus Signori <[email protected]>
> wrote:
>
> > You could put it in your app raw directory.
>
> > On Jul 10, 4:38 am, Tez <[email protected]> wrote:
>
> > > Hi,
>
> > > I have an SQLite DB file. I wish to include the sqlite file with my
> > > apk. How do  i do that?
>
> > > Cheers,
> > > Earlence
--~--~---------~--~----~------------~-------~--~----~
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