Possible Duplicate:
Dynamic Resource Loading Android
In Android, I can load a string from the resources with String s = getString(R.string.keyName)
. But I have a list of categories in my database, each one which has a name. How can I take that category name and then load the appropriate string resource based on it, so that it will work for localization?
Basically, I need to have the keyName
be dynamic; my own String variable. Is this possible? Thanks.