title: How to add a string in string.xml using Java code, in Android?
body: <p>I have created two EditText objects in the Java code of My android application, as</p>
  
  <pre><code>final EditText et1=(EditText)findViewById(R.id.editText1);
  final EditText et2=(EditText)findViewById(R.id.editText2);
  </code></pre>
  
  <p>then on the onClick() event of a button, called a method with parameters as-</p>
  
  <pre><code>addStringToXmlFile(et1.getText(),et2.getText());
  </code></pre>
  
  <p>now in the definition of this method below, i have written-</p>
  
  <pre><code>private void addStringToXmlFile(Editable editable1,Editable editable2){
          String s1=new String();
          s1=editable1.toString();
  
          String s2=new String();
          s2=editable2.toString();
  }
  </code></pre>
  
  <p>The problem is that, now i want to use these two String objects s1,s2, to make two entries in the <code>res/values/Strings.xml</code> file of the database, &amp; I don't know how to do it.</p>
  
  <p>please guide me further.</p>