How to store array of data as a whole using shared preferences
<p>Actually i have an string of array of size 100. Now i have entered data in this string array. Now i want to store this string of array using <code>SharedPreferences</code>. So my question  is that is it possible to store the entire string of array instead of storing individually using  <code>SharedPreferences</code>, if so how that can be done. The code i have written is used to store data
individually using loop. But i want to store the entire string array without using loop.</p>

<p><strong>Code i have written for storing individually is</strong> </p>

<pre><code>SharedPreferences preferencesWrite  = c.getSharedPreferences("myPreferences", 0);
SharedPreferences.Editor editor  = preferencesWrite.edit();

    for(int i=0; i&lt; 100; i++)
    {
        editor.putString("dtHistory" + Integer.toString(i), m_dtHistory[i];

    }
    editor.commit();
</code></pre>
