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 Android
this answer is wrong, when click on link, maps open, but search for location "file:///sdcard/example.kml"
This code throws ActivityNotFoundException
:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("file:///sdcard/example.kml"));
startActivity(intent);
Another ActivityNotFoundException
:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(
Uri.parse("file:///sdcard/example.kml"),
"application/kml");
startActivity(intent);
Open local KML File in Google Maps on Android
Does the Android API support KML files?
Any idea how to open this kml?
Thank you!!!
I´m using Locus Free (from the market), which is a map visor that has the capability to open .kml files like those captured from google maps, BUT as well as is capable to import the .kml file from google, it does not let you see the satelite view, only the markers that you have added to it and some terrain features like roads and geographical names.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With