Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何以编程方式检查设备上当前正在运行的区域设置?
Locale.getDefault().toString() 或者 context.getResources().getConfiguration().locale.getDisplayName()
Locale.getDefault().toString()
context.getResources().getConfiguration().locale.getDisplayName()
两者都将返回字符串