This time I want to get an array-list element from strings.xml and convert it to an array (String[], List or whatever can later be used to read the elements or the total size). I am trying with List<String> MathFormulas = Arrays.asList(getResources().getStringArray(R.id.StringArray)); but the application crashes, so this must be the wrong way of doing it. Some help? Thanks!
This time I want to get an array-list element from strings.xml and convert it
Share
I see that you are using identifier R.id.StringArray when it should start with R.array. The rest of the code looks OK to me.