In android, it is easy to translate strings that are in the strings.xml file. Is there another way I can translate a string in java? For example, I need to retrieve the string from a server, then translate it, which can't be done with the strings.xml file. 

Is there any official documentation on this?