就在最近的context.getResources().updateConfiguration()已在Android API 25中弃用,建议使用上下文.而是createConfigurationContext().
有谁知道createConfigurationContext如何用于覆盖android系统区域设置?
在此之前将通过以下方式完成:
Configuration config = getBaseContext().getResources().getConfiguration();
config.setLocale(locale);
context.getResources().updateConfiguration(config,
context.getResources().getDisplayMetrics());
Run Code Online (Sandbox Code Playgroud) 我有一个Android应用程序,它使用谷歌的libphonenumber,每次libphonenumber有区域代码和运营商号码"元数据"的更新,我必须逐字地重新打包应用程序与更新版本的库并释放它.
我的问题是,是否有人可以指导或向我展示更新已安装/正在运行的Android应用程序上的libphonenumber元数据的方法,而无需在每次更新时都构建新版本.
先感谢您,