The problem occurs at
Element element = it.next();
And this code which contains that line, is inside of an OnTouchEvent
Well i have tried all the aspects in my case where i was iterating in an adapter a list but due to hitting again and again i showed me the message of exception being thrown . I tried Casting the list to
= (CopyOnWriteArraylist)mylist.value;
but it also throwed me an exception of CouldNotCastException,(and i finally pondered over the fact that why do they use or provide us a facality of casting).
I even used the so called Synchronized Block too, but even it didn't worked or i might would have been using it in a wrong way.
Thus it's all when i finally used the #all of time# Technique of handling the exception in try catch block, and it worked So put your code in the
try{
//block
}catch(ConcurrentModificationException){
//thus handling my code over here
}