how can I use this code in order to add an array and retrieve it later? can I use a simple for loop?
  SharedPreferences settings = getSharedPreferences("isChk", 0);
  SharedPreferences.Editor editor = settings.edit();
  editor.putBoolean("keys",ArrayValue[i] );
  editor.commit();
and how can I then retrieve them and store each element in an array variable can I use this?
for( int i=0; i<myArr.size(); i++){
keys[i] = settings.getBoolean("isChk", false);
isChkb.add(keys[i]);
}
 
     
     
     
     
    