问题
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