【发布时间】:2017-08-04 12:24:06
【问题描述】:
在 Android 上,为什么以下获取区域设置的调用不同?
Locale.getDefault()
和
getResources().getConfiguration().locale
【问题讨论】:
-
Locale.getDefault()是在 Java 中获取当前语言环境的标准方法,getResources().getConfiguration().locale是 Android 语言,但自 API 24 Checkout this answer987654321@ 起已弃用
标签: android localization