This is the way it will behave for 1.0. We deliberately don't allow the application to be involved in installation, so the system can take care of everything and be able to completely clean up after the app is removed. You can do your initialization the first time the user starts the app.
For updating, this is effectively a complete uninstall and then reinstall of the app, just leaving its previous data around. As such, updating is the same as installing. The user needs to be involved in the update process anyway, so we expect them to go through the same steps of updating, and then running the app as desired, and you can re- initialize there. Anyway, as I say this is the way it is for 1.0. We certainly may tweak things in future releases as we see what apps want to do and what makes sense (and as the marketplace app evolves), but have no plans at this point. On Aug 29, 10:36 am, viktor <[EMAIL PROTECTED]> wrote: > Let's continue this discussion: > > http://groups.google.com/group/android-developers/browse_thread/threa... > > The PACKAGE_ADDED broadcast is not received by the installed (added) > package anymore (SDK 0.9). > > This was the only way to let an application to execute a piece of code > when it is installed on the phone. > > This feature is especially important when an application is > reinstalled. Our app needs a service to be running. We use > BOOT_COMPLETED event to start the service when the device boots up. > > As expected, Android kills the service before an app is reinstalled. > But in SDK 0.9, there is no way to start the service after the new > version of the app is installed. I hope this will be addressed in 1.0. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---