I've got some lat, long values to work but not others.  For example,
the following below seems to work, but if I use the same lat,long that I do
for my mapview,
it doesn't.  My guess is that perhaps if it doesn't map to an actual street
then
the streetview will fail.   Perhaps there is a way to find the closest
street to
the current lat/long.

              String temp="google.streetview:cbll=37.789666, -122.386946";
              startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse(temp)));





On Tue, Sep 30, 2008 at 12:01 PM, zl25drexel <[EMAIL PROTECTED]> wrote:

>
> Is anyone able to get streetview working?
>
> i was able to start the streetview map but the map wont display and
> gave an error that says 'invalid panorama'
>
> The only documentation about street view i can found is
> http://code.google.com/android/reference/available-intents.html
>
>    private static final String STREET_VIEW_FORMAT =
> "google.streetview:cbll={0},{1}&cbp=1,0,-20,1.0&mz=test";
>
>            GeoPoint pt = listing.getGeopoint();
>            Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(
>                    MessageFormat.format(STREET_VIEW_FORMAT,
> pt.getLatitudeE6()/1000000f, pt.getLongitudeE6()/1000000f)));
>            startActivityForResult(i, RESULT_OK);
> >
>

--~--~---------~--~----~------------~-------~--~----~
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