问题
I can use
Resources res=this.getResources();
arr1=res.getStringArray(R.array.one);
to get the array and changed some of its values,
Then how can I save the new values back to the file of res/values/array.xml
?
回答1:
You cannot "save the new values". Resources are read-only at runtime.
来源:https://stackoverflow.com/questions/7227549/how-to-update-arrays-in-res-values-array-xml-by-code