I am trying to get and display a live.kml file from maps.google.com using
Uri.parse("geo:0,0?q=http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=104538451667315338387.0004887d133ba2ab6eec9&ll=42.029611,-93.646109&spn=0.011396,0.022724&z=16l&output=kml");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, mapUri);
startActivity(Intent.createChooser(mapIntent, "lol"));
However, after opening mapview, I get a notification that "The community map cannot be displayed because it contains errors"
I get this error only if I download .kml directly from maps.google. If I copy the same link to my address bar, upload the .kml file and upload it to another location, then it works fine. I would like to be able to receive maps directly from Google so I can make changes and this will be immediately reflected to my users.
source
share