我知道我们可以通过使用来改变地图中的语言
String languageToLoad = "hi"; // your language
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());
Run Code Online (Sandbox Code Playgroud)
但是,这改变了"印地语"中的整个地图语言.我们如何根据谷歌地图的区域语言更改语言
每个州或国家都有不同的语言.是否有谷歌api或我们在运行时添加一些代码?
我已经insatlled HAXM但还是我没能AVD开始,我得到了错误埃夫里的时间.
我尝试了堆栈溢出中的所有答案都没有用
Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!
15:00 Emulator: CPU acceleration status: Unable to open HAXM device: ERROR_FILE_NOT_FOUND
15:00 Emulator: Process finished with exit code 1
Run Code Online (Sandbox Code Playgroud)