Pretty much I've been trying to figure this out for the past hour.
I want to generically get strings from strings.xml
and in to my code so I can dynamically change the amount of strings without having to change anything in my code that loads them in to the array list.
So far all I have is
for(Field x :R.string.class.getFields())
if(x.getName().startsWith("ans"))
choices.add(/*what do I add here to get the string value from the field in to the arraylist */);
I can not figure out for the life of me how to get the string value out of the field object. All I am getting is either Id's [or at least what I think is an Id] or the name I've assigned it inside the strings.xml
file.