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
?
You cannot "save the new values". Resources are read-only at runtime.