They are created immediately whenever the process hosting them is started, before any other components are launched in it.
On Thu, Jul 16, 2009 at 4:12 PM, André Oriani <aori...@gmail.com> wrote: > > Dianne, and for Content Providers, when theirs onCreate method is > called? At mobile's power up? Or the first to call the ContentProvider > pays the penalty for the creation of tables? > > On 16 jul, 16:37, Dianne Hackborn <hack...@android.com> wrote: > > Hi there is somewhat deliberately no such mechanism. The way all of the > > rest of the platform deals with plugins is by doing queries on the > package > > manager. For example, if the plugins are implemented as a service, you > > define an Intent action string for such a plugin which they declare in > their > > manifest, and you can very efficiently query the package manager for all > > such services. > > > > > > > > > > > > On Thu, Jul 16, 2009 at 11:55 AM, André Oriani <aori...@gmail.com> > wrote: > > > > > Hi I would like to be able to do some installation routines when APK > > > is installed and some clean up when APK is removed. I know there is > > > some broadcast intent to know when an application is installed or > > > removed , but the application in question does not receive those > > > intents. Is there any way to an an APK to execute some initialization > > > code after have just been installed e cleanup code when is about to be > > > removed. > > > > > My application uses other APKs as plugins. At every startup it has to > > > check for new plugins what is a cumbersome task . I would like to > > > make them smarter by implement a self registration mechanism during > > > installation. > > > > > Thanks, > > > André Oriani > > > SW Engineer > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see > and > > answer them. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---