我使用以下代码调用安装在Blackberry设备中的Google地图
public void invokeGMaps(GMLocation l) {
URLEncodedPostData uepd = new URLEncodedPostData(null, false);
uepd.append("action", "LOCN");
uepd.append("a",
"@latlon:" + l.getLatitude() + "," + l.getLongitude());
uepd.append("title", l.getName());
uepd.append("description", l.getDescription());
String[] args = { "http://gmm/x?" + uepd.toString() };
ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];
ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
try {
ApplicationManager.getApplicationManager().runApplication(ad2, true);
} catch (ApplicationManagerException e) {
System.out.println(e.getMessage());
Dialog.alert("error1 " + e.getMessage());
} catch (Exception e) {
Dialog.alert("error2 " + e.getMessage());
}
}
这很好用。我已经通过了当前的位置。
假设用户在进入谷歌地图后会搜索谷歌地图上的任何特定位置。因此,当返回到应用程序时,我想要搜索位置纬度&来自谷歌地图的经度。
那么请告诉我如何通过谷歌地图应用程序在我的应用程序中获取它? 请帮帮我,或者关于黑莓搜索位置的任何帮助怎么做?
感谢您耐心地阅读我的问题。