So instead of creating a database, I\'m storing the data using SharedPreference.
SharedPreference
My code is below:
SharedPreferences.Editor editor =
editor.putInt("favid"+id, 1);
what's about id is equals to 0? here you are reading starting from 1
for (int i = 1; i < 19; i++) {