我试图从我的应用程序启动Google地图。我使用的是:启动Google地图应用程序
GeoPoint center = _mapView.getMapCenter();
Uri uri = Uri.parse("geo:"+center.getLatitudeE6()+","+center.getLongitudeE6());
Log.d(LOG_TAG, "Launching Google Maps with Uri: ("+uri+")");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
我中心在纽约的某个地方的地图进行了测试,但谷歌地图打开,不集中在那里。 我遵循Android Developer的站点参考使用:“geo:latitude,longitude”模式。
,你看到打印日志:
Launching Google Maps with Uri: (geo:40763500,-73979305)
任何人知道什么可能是问题吗?
啊,你固定它。好。 – 2010-03-31 14:16:07