The problem occurs at
Element element = it.next();
And this code which contains that line, is inside of an OnTouchEvent
OnTouchEvent
An indexed for loop should also work.
for (int i = 0; i < collection.size(); i++)