Cool. I would also recommend that you change your code to send new data in the message, like I described above.
If your netwoking code runs on a separate thread - which it should be - then that global is like a dog waiting to bite you when you least expect. -- Kostya 2011/1/17 AC <[email protected]> > > > On Jan 17, 5:00 pm, Kostya Vasilyev <[email protected]> wrote: > > 2 - As described in the link above, code that is trying to remove > elements > > from a collection while iterating, for example: > > > > for (Item i : myHashMap.values()) { > > if (some condition) { > > myHashMap.remove(i.key); > > } > > > > } > > > > You can't do this - use iterator.remove() to remove elements while > > iterating. > > That was the problem! Thank you very much! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

