Android - How to launch Google map intent in android app with certain location, zoom level and marker

后端 未结 4 762
北荒
北荒 2020-11-30 01:16

Map Intent not working with specific zoom level as well as custom marker

    float lat = 40.714728f;
    float lng = -73.998672f;

    String maplLabel = \"A         


        
4条回答
  •  旧巷少年郎
    2020-11-30 01:46

    Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?daddr=" + location.getLatitude() + "," + location.getLongitude()));
    startActivity(intent);
    

提交回复
热议问题