Pretty much what the title says.
I have got a checkbox which on checked puts a string into shared prefs, and when unchecked should remove that same string.
I wanted to use the editor.remove but it asks for a key and not a string value and I can't seem to figure it out... the id would be: "recept" + (fav_popis.getInt("brojanje", 0) + 1)
but that doesn't work between the strings are later used to create a listview!
editor.putInt("brojanje", fav_popis.getInt("brojanje", 0) + 1);
editor.putString("recept" + (fav_popis.getInt("brojanje", 0) + 1), s_product);
any help appreciated.
Thank you!