AppWidgetManager getAppWidgetIds returning old Widget ids
问题 I'm trying to get a list of all ACTIVE instances of my widget. In the OnUpdate method of my AppWidgetProvider, I'm doing the following: // Get all ids ComponentName thisWidget = new ComponentName(context, this.getClass()); int[] lastWidgetIds = appWidgetManager.getAppWidgetIds(thisWidget); The problem is that if you add a widget to your homescreen and then delete it, getAppWidgetIds still returns a list containing among others the id of the widget you just deleted. Is there a way to retrieve