I’m currently playing around with App Widgets in Android and I’m a little confused about the appWidgetsIds-parameter in the AppWidgetProviders onUpdate-method.
appWidgetIds: The appWidgetIds for which an update is needed. Note that
this may be all of the AppWidget
instances for this provider, or just a
subset of them.
So I suggested that if I have two instances of my Widget on the Home-Screen, there would be two ID’s in the Array. So I added two instances of it but the array contains eight elements.
There are no other Widgets on the Home-Screen.
Am I missing something here or is this a Android Bug?
Okay, after clearing all the Apps Data and completely reinstalling it, it now works.
So, I’m not sure what the problem was, I only know it’s solved now.