*> How can a package determine that it has been updated and that it, > therefore, must stop and restart itself?*
According to this, you can't: http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED *> Specifically, if my appwidget is installed on the homescreen and the > user downloads a new version, I have to make sure that the widget is > uninstalled and reinstalled * You can't do this. Only the end-user can remove and re-add a widget... *> so that it executes the later version of the > app. I don't think that happens automatically, does it?* Are you talking about the widget here or the app? If you are talking about the widget then the next time the provider is called it will automatically call the new code and, as long as changes weren't too drastic, everything should update and then work fine. However this won't always be the case and sometimes the user will need to remove the widget and add it back again to get it to work. On Sat, Feb 26, 2011 at 7:42 PM, Jake Colman <[email protected]> wrote: > > How can a package determine that it has been updated and that it, > therefore, must stop and restart itself? > > Specifically, if my appwidget is installed on the homescreen and the > user downloads a new version, I have to make sure that the widget is > uninstalled and reinstalled so that it executes the later version of the > app. I don't think that happens automatically, does it? > > -- > Jake Colman -- Android Tinkerer > > -- > 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 -- 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

