Indexing through Android string resources
Posted
by gssi
on Stack Overflow
See other posts from Stack Overflow
or by gssi
Published on 2010-05-30T10:29:53Z
Indexed on
2010/05/30
10:32 UTC
Read the original article
Hit count: 151
OK, I've got the code to allow me to index through the string resources. Now, how do I get the value of a specific resource item without knowing its name?
Here's the index loop:
Field[] fLst = R.string.class.getFields();
for(Field f : fLst){
Log.i(dbgTag, "Field Entry: R.string." + f.getName());
}
Thanks for your efforts ...
© Stack Overflow or respective owner