您是否需要获得设备区域设置的许可?

Do you need a permission to get the Locale of a device?

我正在开发一个应用程序,该应用程序必须根据智能手机用作位置的国家/地区进行调整。

我是否需要在 AndroidManifest.xml 中声明任何权限,就像我对网络连接所做的那样:

<uses-permission android:name="android.permission.INTERNET" />

不,您不需要获得当前语言环境的权限。您只需使用:

Locale current = getResources().getConfiguration().getLocales().get(0);

No.You不需要在清单中声明权限。