Simon Gerber wrote:
> Is there any way for an application to hook into its own install? 

Nope, sorry.

> The situation is that I have some non-trivial data I wish to insert
> into a content provider before (or at least on) first run.
> 
> I would prefer to use my own API, rather than hard-code the SQL, and
> the idea of checking the data exists for every call to onCreate()
> within my content provider seems a little crude.

Set yourself a flag somewhere (flat file, SharedPreferences, etc.) to
indicate if the work has been done.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

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

Reply via email to