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

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -