Singsys blog

Android App Optimization With ArrayMap and SparseArray

Array Map and Sparse App

HashMap is quite flexible hence it is most preferred data structure choice to store key -> value pairs. Although Android Studio will war you when you try t use a HashMap. Well then let’s look at why we should be using ArrayMap.