androidwidgetuninstallation

Android remove widget on app uninstall


I have a problem with a widget I have for an application.
If I put the widget on my homescreen, then I uninstall the application that my widget comes from, but the widget will not be removed on the homescreen. Instead of the widget there is a text saying: : "Loading".

Are there some kind of code I need to write so it gets removed when I uninstall the application on the phone?


Solution

  • I'm pretty sure the user has to manually remove widgets from the home screen. Here is a reference