Wow, the Android 1.6 Google Maps app does really well with the KML
version of the My Map I was testing, though.
Starting Maps using this code gave a "This Community Map could not be
displayed because it contains errors." error:
Uri uri = Uri.parse("geo:0,0?q=http%3A%2F%2Fmaps.google.com%2Fmaps%2Fms
%3Fie%3DUTF8%26hl%3Den%26oe%3DUTF8%26msa%3D0%26msid
%3D107089898552236652791.000476babeb0ef2ce49c0%26ll
%3D42.145078%2C-82.792969%26spn%3D0.458201%2C0.823975%26z%3D10%26output
%3Dkml");
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
startActivity(intent);
But downloading the KML from there myself by using the unencoded URL
manually:
http://maps.google.com/maps/ms?ie=UTF8&hl=en&oe=UTF8&msa=0&msid=107089898552236652791.000476babeb0ef2ce49c0&ll=42.145078,-82.792969&spn=0.458201,0.823975&z=10&output=kml
And putting it on a test server where the URL was simpler worked fine
with that method. Here's the UI the Maps app showed:
http://imgur.com/qIcAW.png
http://imgur.com/3qAMb.png
http://imgur.com/FURDZ.png
http://imgur.com/MJLcr.png
There may be a different encoding, or no encoding way to get the
direct attempt to work as well. I just saw this method over in another
thread and haven't gotten to play with it much:
http://groups.google.com/group/android-developers/browse_thread/thread/a46b618a27e3f5dc/acac4792ff93d10e?show_docid=acac4792ff93d10e
Leaving off the "geo:0,0?q=" prefix didn't work. Same error as
following a URL with the HTML version of the My Map. Just downloaded
the file and wouldn't start Maps with it with the KML version of the
My Map.
On Oct 27, 8:21 pm, Lance Nanek <[email protected]> wrote:
> Trying a My Maps URL directly on my Android 1.6 phone right now didn't
> work out well. The Google Maps app showed an error, "Unable to load
> the URL." The Browser showed the map OK, but tapping the icons did
> nothing. Zooming the map out got stuck partway when I tapped the zoom
> out control.
>
> The Browser on Android 2.0 in an emulator did slightly better. The map
> loaded, zoomed out OK, and showed the bubbles with details when I
> tapped them. I had to set the zoom to close and text size to huge in
> order to actually read the text, though, and then it overflowed the
> popups. The controls were tiny as well. It would be tough to tap them
> on a real phone. The D-PAD would only select the Google logo, terms
> and "report a problem" links, and the Map/Sat/Ter controls. It
> wouldn't select the other controls.
>
> The link I was using for testing was the top Google search result for
> "google maps essex
> hauntings":http://maps.google.com/maps/ms?ie=UTF8&hl=en&oe=UTF8&msa=0&msid=10708...
>
> This looks like it was made by the My Maps feature, although it
> probably isn't the one created by the OP.
>
> Anyway, just reporting that the quickest method of just using the URL
> that works for desktops doesn't seem viable. There may be some way to
> embed a simpler version on a web page and use that URL. I know the
> Google Maps API you use for making web pages explicitly mentions
> Android:http://code.google.com/apis/maps/documentation/v3/#Mobile
>
> I've seen that the Google Maps app on Android 2.0 has an option in the
> main menu called "Layers" which pops up a dialog with an option called
> "More layers" which then offers "My Maps >", "Wikipedia", and "Transit
> Lines". So it looks like Google may be adding support for My Maps to
> their own Google Maps application in Android 2.0.
>
> If I were going to write a custom Android app to show the OP's My Map,
> I would be tempted to generalize it to work with any available My Map
> out there. Knowing Google is about to release exactly that as feature
> kind of puts a damper on that idea, though.
>
> On Oct 27, 6:18 pm, mark mcqueen <[email protected]> wrote:
>
> > It is a map i done using my maps/google maps that has links to haunted
> > places around essex, including statements and pics. I only need to create
> > app to link to my map etc
>
> > On Oct 27, 2009 10:02 PM, "MMC2" <[email protected]> wrote:
>
> > What does your app actually do?
>
> > Mike
>
> > ----- Original Message ----- From: "pulsarman325" <
>
> > [email protected]> To: "Android Begin...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---