Locale.getDefault().getCountry() 返回空字符串

dev*_*v90 6 android locale android-layout

我正在尝试使用国家/地区代码获取用户语言,例如en-US, es-es,但是当我使用 时Locale.getDefault().getCountry(),它返回空字符串。虽然它给了我正确的语言Locale.getDefault().getLanguage()