What ids are in onUpdate's appWidgetIds[]?
Do the ids in the array appWidgetIds of the method
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
all belong to my app?
If so then there are some appwidgets somewhere in the nirvana of my android, because if I delete all appwidgets there still remain some ids in the array which are not shown on my homescreen. :-(
Is there a way to remove ALL widgets?
我们的应用程序小部件可以为同一个应用程序提供多个小部件,比如一个小部件显示位置,一个小部件显示股票,一个小部件显示等等,在这种情况下,每个小部件都可以分配一个名为appWidgetID的ID
I got it solved: I uninstalled, then reinstalled my app and after that all the ghost widgets were gone.
In conclusion: all the ids in appWidgetIds are the ids of my app .
链接地址: http://www.djcxy.com/p/50616.html