Launch Google Maps app

后端 未结 2 945
小鲜肉
小鲜肉 2021-01-21 09:30

I\'m trying to launch Google maps from my application. I\'m using:

GeoPoint center = _mapView.getMapCenter(); 

Uri uri = Uri.parse(\"geo:\"+center.getLatitudeE         


        
2条回答
  •  隐瞒了意图╮
    2021-01-21 10:20

    Try to use:

    Uri uri = Uri.parse("geo:"+(center.getLatitudeE6()/1E6)+","+(center.getLongitudeE6()/1E6)); 
    

    The geo: Uri format takes decimal latitude/longitude and not E6 format (degrees * 1E6).

提交回复
热议问题