Open local KML File in Google Maps on Android

前端 未结 4 537
离开以前
离开以前 2020-12-13 14:53

I have loaded a KML file onto an Android device. What\'s the easiest mechanism for loading an overlay of that KML file into Google Maps? I do not want to upload the KML file

4条回答
  •  感动是毒
    2020-12-13 15:29

    File KML = new File("/sdcard/doc.kml");
    Intent i = getPackageManager().getLaunchIntentForPackage("com.google.earth");
    i.setDataAndType(Uri.fromFile(KML), "xml");
    startActivity(i);
    

    source: http://enladodelbien.blogspot.com/2015/06/kmlkmz-to-google-earth.html

提交回复
热议问题