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.

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

Reply via email to