Is there a way to iterate over Java SparseArray (for Android) ? I used sparsearray to easily get values by index. I could not find one.
sparsearray
If you don't care about the keys, then valueAt(int) can be used to while iterating through the sparse array to access the values directly.
valueAt(int)
for(int i = 0, nsize = sparseArray.size(); i < nsize; i++) { Object obj = sparseArray.valueAt(i); }