I am new to developing in android. In my android app I\'m using HashMap, but I\'m getting a warning:
**\"Use new SparseArray(...) ins
SparseArray is better memory efficient Data Structure than HashMap for integer key value pairs. And it is specific to Android and I believe it can't be used for Java SE.
Sometimes, Linter warning shows that SparseArray must be used as in the above. This dumb warning might be right or wrong. You need to decide to use SparseArray rather HashMap if you find it suitable or you need to suppress it with @SuppressLint annotation.
To decide whether to implement, it is worthwhile doing a little research and evaluate your situation. You can find all some useful links here
https://gunhansancar.com/sparsearray-vs-hashmap/
https://developer.android.com/reference/android/util/SparseIntArray