0

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?

Aloong
  • 1,705
  • 5
  • 23
  • 40

1 Answers1

0

You cannot "save the new values". Resources are read-only at runtime.

CommonsWare
  • 954,112
  • 185
  • 2,315
  • 2,367