I have some problem with java.util.ConcurrentModificationException
. When I deleted one characater or more in my autocompletetext I got force close. Anybody knows what happen with that ? and what is the solution for that problem ?
Thank You.
I have some problem with java.util.ConcurrentModificationException
. When I deleted one characater or more in my autocompletetext I got force close. Anybody knows what happen with that ? and what is the solution for that problem ?
Thank You.
It looks like you are adding and deleting something from your collection at same point of time. By doing this, you are structurally modifying the collections more than once at single point of time. Hence you are getting java.util.ConcurrentModificationException
, which is the result of "Fail-Fast" iterators being used in your collections.
You can have a look at this link which explains fail-safe and fail-fast iterators.
what-is-fail-safe-fail-fast-iterators-in-java-how-they-are-implemented and checkout the answer written by Stephen C.