On Sat, Jan 1, 2011 at 6:36 AM, cha <[email protected]> wrote:

> I tried to connect to google maps api to create directions using this code
> below. However, after clicking on the button, it displays "cannot download.
> the content is not supported on the phone."
>

Your are trying to launch a URL. Most likely the browser will be invoked to
this. The URL you are trying to launch is an API command that results in a
JSON blob, not some viewable web page. The browser is telling you that it
cannot download this blob of data as is.

When you use these kind of API, you don't just open up the URL - for that
you could just Google Map. You're supposed to get back the response and
parse it and do what you need to do with it.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to