【发布时间】:2013-11-22 21:34:41
【问题描述】:
我想获取国家名称和国家代码。为此,我使用了以下代码:
Country_Language = getApplicationContext().getResources().getConfiguration().locale.getDisplayLanguage();
Country_code= getApplicationContext().getResources().getConfiguration().locale.getCountry(); // get country code
但我总是得到“US”和“United State”作为国家代码和国家名称,而我的国家不是美国。
感谢任何帮助。
【问题讨论】:
标签: android country country-codes