我需要从默认语言环境中获取国家/地区代码。
ConfigurationCompat.getLocales(context.resources.configuration).get(0)
它返回带有语言的区域设置,但国家/地区是一个空字符串。
是什么原因?我如何获得国家代码?
android locale
android ×1
locale ×1