Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ICS widgets - listviews goes blank randomly (when launcher restarts?) RemoteviesService bug?

I've widget with listview inside and few times per day the listview items just disappears. I find out that it can be due to launcher restart - so I tried a little test. I manually restarted launcher, and it just confirmed my suspicion - it's definitely because of launcher restart.

How to deal with this? The rest of widget (buttons, listeners, ...) are working, just listview items disappear and I can't even see empty_list layout, that I defined - that's why i must add to my widget manual refresh button, but it's not very good solution...

like image 554
qkx Avatar asked Oct 05 '22 04:10

qkx


2 Answers

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

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

like image 176
Milos Cuculovic Avatar answered Oct 20 '22 02:10

Milos Cuculovic


ok except that it's ICS bug, it's partially also my fault - just always recreate widget content in onUpdate method and it will be ok ;)

like image 1
qkx Avatar answered Oct 20 '22 02:10

qkx