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,715
  • 6
  • 23
  • 40

1 Answers1

0

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

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491