Changed to SparseIntArray rather than raw array to deal with CursorLoaders changing the array size.