I convert everything in my Android app into string and add it to a Sqlite database. I use the code below to convert boolean arrays into string, but I dont know how to convert it back from string into boolean array. There spaces between each true and false in the string. How can I break string at each space into a boolean array?
String work= "";
for (int i = 0;i<go.length; i++) {
work= work+go[i];
// Do not append comma at the end of last element
if(i<go.length - 1){
work = work+" ";
}
}