title: How can write code to make sharedpreferences for array in android?
body: <p>I am working in <strong>android</strong>. I want to make sharedpreference in my code, but i dont know the way by which i can make a sharedpreference for array and how can use the value of that sharedpreference in another class.</p>
  
  <p>This is my array in one for loop :- urls[i]=sitesList.getWebsite().get(i);</p>
  
  <p>i want to make share preference of this urls[] array. please suggest me how can i write code to declare sharedpreference and how can i retrieve value of that sharedpreference ?</p>
  
  <p>Thank you in advance.</p>