1
I have a question, I made a checkbox on items in a listview that when marked are stored as Sharedpreferences. So I created a button (Favorites) to access the items marked by the checkbox, but the items marked go to Favorites I created again a new listview to receive the items, but several items comes with only one item in the Favorites listview, I would like to separate them.
Follows my code:
SharedPreferences sharedPreferences = getSharedPreferences("arquivoPreferencia", MODE_PRIVATE);
String fraseR = String.valueOf(sharedPreferences.getAll());
// CRIANDO O ARRAY
final String[] frasesFavoritoArray =
{
fraseR
};
I believe that the problem is precisely in the Array that is receiving all the items in the 'Fraser', but I would not know to separate them.
Is there any solution to this?
Thank you very much.
Thank you, Marty. Solved the problem! The solution proposed above solved the problem. Had a piece of my code I had to fix, Thank you very much!!!
– Tisco