1. Download our Official Android App: Forums for Android!

Apps localization question.

Discussion in 'Android Development' started by emnaki, Jul 13, 2009.

  1. emnaki

    emnaki Lurker
    Thread Starter
    5

    Jul 13, 2009
    4
    0
    5
    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?
     

    Advertisement

  2. KlaymenDK

    KlaymenDK Android Expert
    143

    May 29, 2009
    1,217
    130
    143
    Denmark
    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).
     

Share This Page

Loading...