Starting Google Maps App with provided location and marker

前端 未结 2 1170
无人及你
无人及你 2020-12-30 02:48

From my app I would like to start the Google Maps App with a provided location and a marker. The marker should indicate, that there is something on that given location.

2条回答
  •  [愿得一人]
    2020-12-30 02:55

    Maybe you can try to put ur uri as below: Uri uri =Uri.parse("http://maps.google.com/maps?q=" +_lat +","+_lon);

    At least the above code work for me. It help me add a pin point on top of the location i search for. furthermore, the pin point will have a small dialog box to press on, it provide me the function of searching the direction to that location. :D

提交回复
热议问题