• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps localization question.

emnaki

Lurker
I've read that one should use the string.xml files in resources to do localization of text. I have one application which will allow the users to modify the text value. Will I be able to do that if I use string.xml? My question is if the string.xml file can be modified, added to and included into the application without a full recompile of the application. If not then is using a database for this the best option?
 
Your string table --the xml file-- will be compiled into your application, so any localisation needs to be done prior to distribution.

If you have user-customisable strings (say, the field labels for those 'custom' fields in the address book) then yes, you'd best store them in a database. You might store these strings along with your data (best if each record needs to be separately customisable), or you might store them in your application's preferences (best if the labels should be application-global).
 
Back
Top Bottom