简体   繁体   中英

Why my android develop app default language is Chinese?

I am developing my android app . And my default strings.xml is English like this:

default strings.xml:
默认字符串.xml

And I have went to my phone Setting to set language is English(United States)

However , when I run my app , it always show Chinese:

在此处输入图片说明

I use these code to get some information:

  Locale locale = getResources().getConfiguration().locale;

it shows the locale value is "zh" , but my phone system language is English at the same time.

打开菜单=>设置=>语言和键盘=>选择区域设置=>从中设置任何区域设置

What version of Android do you use? Is it Android N(above lollipop)? Android N allows the user to configure a list of languages. If the first language is not supported, and the second is Chinese, then you will get Chinese UI (if Chinese strings are available, of course).

It seems to me that your first language is not supported on your mobile and your second one is chinese. So thats why

語言更改手机的语言设置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM