When my application is uninstalled, the widget that is contained in these packages remains in HOME and gives an error message "Problem loading widget."
How to remove a widget when my application is uninstalled? Is there an attribute in the manifest that I am missing?
I thought this thing should be handled by the OS, but suppose it is not.
EDITED : Now I catch the intention of “PACKAGE_ REMOVED” and check the “EXTRA_REPLACING” to make sure it is not reinstalling, but I don’t know which actual code to use to remove the widget.
android widget
Ryan alford
source share