I have a very simple xml file, created after the runtime, it's very similar to the res/array.xml but it's saved in the internal storage. It's something like:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="group0_arr">
<item>1,name,desc</item>
<item>2,name,desc</item>
<item>3,name,desc</item>
</string-array>
<string-array name="group1_arr">
<item>100,name,desc</item>
<item>101,name,desc</item>
<item>102,name,desc</item>
</string-array>
</resources>
In my activity to get an array of string from the res/array.xml I use the code:
String[] arrayOfString0 context.getResources().getStringArray(R.array.group0_arr);
But to get the file on internal storage I use:
File darf= new File(this.getFilesDir(), "other_array.xml");
So how I can get the same result starting from that?