0

in my case the application will be installed on a single device and will be used by different users to login and use the app, problem here is that the users are of different languages you can say some are of french language and some are English language so i decided to do this by putting two strings.xml files, one in "Values-fr" for french ones and one in "Values" means if the person is french then use french resources otherwise default will be English resources. as this will not work because device is single and it'll be irritating if french one have to change device language to french to see app in french and then when English user came he needs again to change the device local language to English to see app in English. so language prefrences are stored in database for each user. i just want here that the selection of localized resources i.e the selection between "Values" and "Values-fr" should be done by my decision not by android deciding on the basis of device local language. is this possible?

4

1 回答 1

1

您可以尝试从应用程序中更改区域设置,以便分配正确的值并在退出时恢复它。这是对您的问题的粗略解决方案。

链接可能对您的任务有用。

于 2012-09-13T12:50:10.253 回答