Google Map is not showing in Blackberry Browser

2019-04-17 13:38发布

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条回答
神经病院院长
2楼-- · 2019-04-17 13:51

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

查看更多
登录 后发表回答