Oh my gosh, it started to work just fine. Anyway the following code
serves as a simple example for anyone just starting to use Streetview/
My house looks great on the emulator screen!



On Oct 16, 2:14 pm, ian <stilbit...@gmail.com> wrote:
> I'm unable to get Streetview running from an intent. For example, I'm
> using the following simple code which does not work:
>
> package ian.com.street;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.net.Uri;
> import android.os.Bundle;
>
> public class Street extends Activity
> {
>         @Override
>         public void onCreate(Bundle savedInstanceState)
>                 {
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.main);
>
>                 double lat =  44.640545;
>                 double lon =-63.575897;
>
>                 Intent streetIntent = new Intent(Intent.ACTION_VIEW, Uri.parse
>                           ("google.streetview:cbll=" + lat +
>                                           "," + lon + "&cbp=1,180,,0,1.0"));
>                 try {
>                 startActivity(streetIntent);
>
>         } catch (Exception e) {}
>
>                 }
>
> }
>
> My manifest ends :
>
>                 <uses-library android:name="com.google.android.maps"/>
>     </application>
>         <uses-permission android:name="android.permission.INTERNET"/>
>         <uses-permission
> android:name="android.permission.ACCESS_FINE_LOCATION"/>
>         <uses-sdk android:minSdkVersion="3" />
> </manifest>
>
> Which seems OK.
>
> Now I'm using release 1.5r3 and calling the 9.1 ADT. The lat/long are
> right on a camera icon location in front of my house. Does anyone have
> any suggestions on what the problem could be?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to