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
For removing all the elements from SparseArray using the above looping leads to Exception.
SparseArray
Exception
To avoid this Follow the below code to remove all the elements from SparseArray using normal loops
private void getValues(){ for(int i=0; i