title: What is the best way to edit string-array in android studio?
body: <p>In my program, I have a multiple TextView that get the string value from the "name_exe.xml"</p>
  
  <p>The way I do this is</p>
  
  <ol>
  <li>Declare: private String strName[];</li>
  <li>In Main method: strName = getResources().getStringArray(R.array.exercise_a);</li>
  <li><p>Assign the String:</p>
  
  <pre><code>txtview1.setText(strName[0]);
  txtview2.setText(strName[1]);
  txtview3.setText(strName[2]);
  txtview4.setText(strName[3]);
  txtview5.setText(strName[4]);
  txtview6.setText(strName[5]);
  </code></pre></li>
  </ol>
  
  <p>In /res/values/name_exe.xml, </p>
  
  <pre><code>&lt;string-array name="exercise_a"&gt;
  
      &lt;item&gt;12-15-20&lt;/item&gt;
      &lt;item&gt;20&lt;/item&gt;
      &lt;item&gt;110&lt;/item&gt;
      &lt;item&gt;10&lt;/item&gt;
      &lt;item&gt;35&lt;/item&gt;
      &lt;item&gt;35&lt;/item&gt;
  
  &lt;/string-array&gt;
  </code></pre>
  
  <p>!(<a href="http://i57.tinypic.com/2v1qb6c.png" rel="nofollow">http://i57.tinypic.com/2v1qb6c.png</a>) This is my screenshot from my app.</p>
  
  <p>I want the user to be able to edit this string array and the data still there when the user reopen it. So what is the best way? I am very beginner on android studio.</p>
  
  <p>I would greatly appreciate it if you can post some example code.</p>
  
  <p>Thanks in advance</p>