title: how to get value from sharedpreferences and save it arraylist
body: <p>how to get value from shared preferences and save it array list</p>
  
  <p>I want to get the string from shared preferences so that i want save that string to array list</p>
  
  <pre><code>SharedPreferences keyValues = context.getSharedPreferences("name_icons_list", context.MODE_PRIVATE);
      if(keyValues.getString(""+str,"").equals("true"))
  
      {
  
          holder.tb1.setChecked(true);
          onApps.add(str);
          System.out.println("Block appp+++++"+onApps);
          System.out.println("******************************************");
          System.out.println("data retrive from database"+ position);
          System.out.println("******************************************");       
  
      }
  </code></pre>