Why not hook it into the same call that creates all your tables? That way it
will be installed right when you create your DB for the first time,
guaranteed before any user read/write operation takes place and it plays
nicely with increases in DB version number. No preferences or other settings
needed.
HTH
Ludwig

2009/2/13 intbt <[email protected]>

>
> I am using a database for storage, I specifically do not want to use
> the Internet connectivity for data download.
>
> I write and install the database from a XML file on first application
> call. I set a flag within the code to prohibit install during app
> usage. However, once the user leaves the app, this flag is re-set.
>
> How do I make sure that as long as the on the app is installed on the
> phone, the database does NOT re-load when the app is called from the
> Main phone menu? Can I install on application loading from the app
> site as opposed to user activity?
> Thanks,
>
> intbt
> >
>

--~--~---------~--~----~------------~-------~--~----~
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