Possible Duplicate:
Change language programatically in Android
I would like to develop an Android app which will offer some specific information based on the user selection of a country. So the user will choose a country and the app will update the fields for that country. The information is text.
For each country the information would be about 2-3 pages, with different main fields.
My first thought was to add text files to the application in the “res/raw” folder and load them after getting the user preference. Is that the best way to do it? Another idea would be to add xml files in res/xml ( it would be easier to parse? ).
And if I would go with prepackaged text files, which would be the best way to parse the text file for adding information in the specific fields of the application?
I think it is good to put them in “
res/raw“. You may consider usingxmlfiles instead of plain text files. It could be easier to parse and better organized.