问题:Android开发过程中根据手机设置的语言获取国家码
方法:
/* * 获取国家码 * */ public static String getCountryZipCode(Context context) { String CountryZipCode = ""; Locale locale = context.getResources().getConfiguration().locale; CountryZipCode = locale.getCountry(); return CountryZipCode; }