Android ICS widgets - list of views empty randomly (when starting the launcher?) RemoteviesService error?

I have a widget with a list inside and several times a day the list items just disappear. I find out that this may be due to a restart of the launcher, so I tried a little test. I manually restarted the launcher, and this only confirmed my suspicion - this is definitely due to restarting the launcher.

How to deal with this? The rest of the widgets (buttons, listeners, ...) work, the list items just disappear, and I don’t even see the empty_list layout that I defined - so I have to add the widget to the update button manually, but this is not a good solution ...

+5
source share
2 answers

ok, except that this is an ICS error, this is partly also my mistake - just always recreate the contents of the widget in the onUpdate method, and that will be fine;)

+1
source

The problem you are facing seems to be a known issue: see the link here: http://code.google.com/p/android/issues/detail?id=28216

There you can find a workaround on how to fix this.

+3
source

All Articles