title: How to store array in an sharedpreferences in android
body: <p>I am building an android application where the user selects his event from spinner tool.</p>
  
  <p>The Spinner tool displays the array list that user had selected first time the application is launched.</p>
  
  <p>Now I had parsed the array list from app launch page to spinner activity class an using it in spinner tool success full now.</p>
  
  <p>Here is code:</p>
  
  <pre><code>public static ArrayList&lt;String&gt; array;
  </code></pre>
  
  <p>Here, the name array has the arraylist.
  I need to store this in sharedprefrences. How can I do this ?</p>
  
  <p>I am new to android.</p>