On Jan 17, 5:00 pm, Kostya Vasilyev <kmans...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en