更改Google地图v2语言在Android本机中 [英] Change Google maps v2 Language In Android native

查看:177
本文介绍了更改Google地图v2语言在Android本机中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了以前提出的所有问题。我正在重写这个问题,因为我无法在Android的谷歌地图上看到我的首选语言。我可以设置和获取iOS谷歌地图中的特定语言,但在Android中不支持。在iOS谷歌地图显示其基于语言区域。但在和它没有显示。



目前我需要古吉拉特语(基于OR地区)。这是谷歌地图的web版本和ios版本支持,但不是在andorid。任何人都可以指导我在andorid中做到这一点吗?



我通过app locale设置Google地图的语言。
下面是代码:

  public static void setAppLocal(Context mContext){
GeneralFunctions generalFunc = new GeneralFunctions(mContext);
String languageToLoad =gu;
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
mContext.getResources()。updateConfiguration(config,
mContext.getResources()。getDisplayMetrics());
}


解决方案

Google问题跟踪器。你可以在这里找到它:



https:/ /issuetracker.google.com/issues/63829150



我会建议在公开问题追踪器中添加您的评论,并为此错误添加星号以添加您的投票和订阅以进一步通知Google。希望有一天他们会解决它。

I have checked all questions which are previously asked. I am rewriting this question because of i am unable see my preferred language on android's google map. I can set and get particular language in IOS google map but in android its not supported. In IOS google map shows its language region based. but in andorid its not showing.

Current i need gujarati language (OR region based). This is supported in web version and ios version of google map but not in andorid. Can any one guide me to do this in andorid?

I am setting google map's language via app locale. Below is the code:

public static void setAppLocal(Context mContext) {
    GeneralFunctions generalFunc = new GeneralFunctions(mContext);
    String languageToLoad = "gu";
    Locale locale = new Locale(languageToLoad);
    Locale.setDefault(locale);
    Configuration config = new Configuration();
    config.locale = locale;
    mContext.getResources().updateConfiguration(config,
    mContext.getResources().getDisplayMetrics());
}

解决方案

This problem was reported in the Google issue tracker. You can find it here:

https://issuetracker.google.com/issues/63829150

I would suggest adding your comment in the public issue tracker and star this bug to add your vote and subscribe to further notifications from Google. Hopefully, one day they will fix it.

这篇关于更改Google地图v2语言在Android本机中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆