<string name="AAAAA">Select a item"</string>
<string-array name="planets_array">
<item>AAA</item>
<item>BBB</item>
<item>CCC</item>
<item>DDD</item>
<item>EEE</item>
<item>FFF</item>
</string-array>
I want to add new item to the string.xml file using edittext.(user inputs).
Could someone please tell me the way to insert a value to XML in this case? If you have any worked through examples, that would be a real help!
Why do you need to edit string.xml file from code? If you need to make a string array, create a Array list of string in java code, and add the values to it from string.xml.