Android - How to open google maps with Intent and KML?

后端 未结 4 1815
我在风中等你
我在风中等你 2021-01-01 03:33

I need to open google maps using kml file wich already exists on sdcard. (/sdcard/example.kml)

I tried:

  • Open local KML File in Google Maps on Androi

4条回答
  •  一整个雨季
    2021-01-01 03:35

    You need to use the geo URI scheme syntax for your Intent data:

    Uri.parse("geo:0,0?q=file:///sdcard/example.kml")
    

    The code in this answer works for me: How to plot a pre-build map from google maps on a MapView

提交回复
热议问题