android - Removing Widget from Home Screen when Uninstalled -


When my application gets uninstalled, the widget included in this package stays on the home screen and returns the error message "problem Loading widget ".

How do I delete a widget when my application gets uninstalled? Is there a feature in the manifest that I am missing?

I thought that this thing should be handled by OS, but it seems that it is not.

Edit : Now I am catching the intention of "PACKAGE_ REMOVED", and checking "EXTRA_REPLACING" to make sure that it is not a restoration, but Actually I really do not know the actual code to remove the widget.

You can not add or remove app widgets from the Home screen. Only the user can do this.

@CommonsWare's quote


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -