I have an android app that utilises a range of enums that will be seen by the user. rather than displaying the enum title (e.g. GRAMS) I want to be able to use the android strings.xml to handle this and have it handle multiple languages.
The problem is getting the reference to the strings file without having to getIdentifier (as suggested here)
Some code if it helps
Enum
public enum Mass implements Unit {
//SI
GRAMS,
KILOGRAMS}
strings.xml
<resources>
<string name="grams_name">grams</string>
<string name="grams_symbol">g</string>