Hiya! When you uninstall the application widget, the host manager must broadcast one of the following intentions ... ACTION_APPWIDGET_UPDATE ACTION_APPWIDGET_DELETED ACTION_APPWIDGET_ENABLED ACTION_APPWIDGET_DISABLED
To use this, in your application provider class (or custom extension of the broadcast receiver), you can receive the broadcast (or use onDeleted () in the appwidgetprovider class) and remove the widget with the identifier of your widget from the application widget host manager ....
Hope this helps ...
Andrew Carr
source share