Google Map is not showing in Blackberry Browser

北慕城南 提交于 2019-12-22 01:42:39

问题


Hello Everyone, I am trying to open Google-Map URL in BlackBerry Browser , but unfortunately it's not showing the Google-Map. The URL is working fine in other OS(Android , Iphone , Windows)

here is the URL : https://maps.google.com/maps?saddr=DT4+8DX&daddr=DT6+3JP and here is my Blackberry Code

String address = "https://maps.google.com/maps?saddr=DT4+8DX&daddr=DT6+3JP";
Browser.getDefaultSession().displayPage(address);

// I also tried with this approach 
String address = "https://maps.google.com/maps?saddr=DT4+8DX&
address = getUrlEncodedString(address);

Browser.getDefaultSession().displayPage(address);

private String getUrlEncodedString(String hsURL)
{
    URLEncodedPostData urlEncoder = new URLEncodedPostData("UTF-8", false);
    urlEncoder.setData(hsURL);
    hsURL = urlEncoder.toString();
    return hsURL;
}

please let me know , why this is not showing G-Map.


回答1:


I try url like this in Nokia and Blackberry. In this platforms i found that this platforms dont support in call through url. I think that url is supported only in android (native to gogle maps) and Iphone that develop support to google maps through url.

Note

If you try call google maps through url in Blackberry browser, the answer that you get is Google page search



来源:https://stackoverflow.com/questions/15701831/google-map-is-not-showing-in-blackberry-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!