I have an array, and want to store it in SharedPreferences
but when I try, it doesn't get saved. Here is the code:
editor.putInt("Symptoms Checklist Baseline Matrix", symptoms_checklist_arr_base);
Where I have made
int symptoms_checklist_arr_base[] = new int[20];
In later code, I try to retrieve this value.
int symptoms_checklist_arr_base[] = prefs.getInt("Symptoms Checklist Baseline Matrix", what do I add as a default?? );
What would I need to do in order to get SharedPreferences
to store arrays and return them?