I have a class which extends AppWidgetProvider, and is responsible fro showing widget.
In my onUpdate method I initialize list of widgets add put all it id’s in linked list.
and I also have a method updateWidget() which is iterate through this linked list of widgets and update it every 10 seconds.
So when I have one widget instance everything works great, but when I ‘am trying to add several widget I got following problems:
To add second widget to that linked list, I need first add it, then delete it, then add it again< and only after that this widget id will be added to that linked list, so only after that it will be up-datable.
What can be the issue, how can i get a normal workflow of my widget?
Thank you on advance.
It seems that you have a list of widgets (mAppWidgetList) per widget. You should probably consider changing it to a static or something.