How to save String[] persistantly?
<p>I am trying to save </p>

<pre><code>public   String [] myRemoteImages = {imageUrl,imageUrl2,imageUrl3,imageUrl4};
</code></pre>

<p>Persistantly.</p>

<p>I want to save the variables inside the array list, to a persistant storage so when the app is killed or destroyed. the URL's are still availible. But the url's will change about every month. I dont want to keep building up strings in a database over time. </p>

<p>So whats the best way to go about doing this?</p>

<p>EDIT: Something like...</p>

<pre><code>    @Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        Log.v("onSavedInstanceState", "Saved inside the bundle");
        SharedPreferences app_preferences = 
                PreferenceManager.getDefaultSharedPreferences(this);
        SharedPreferences.Editor editor = app_preferences.edit();
        editor.putString("URL1", imageUrl);
        editor.putString("URL2", imageUrl2)

    }
</code></pre>
