Another observation. When I went to the emulator's opening screen and selected Mapsm then switched to Streetview mode on the menu, well it brought up the thumbnail but then crashed when I selected it, the same way as my app. I;m using 1.5r1 and maybe streetview needs a newer version like 1.6 to work?
On Oct 11, 11:39 pm, ian <stilbit...@gmail.com> wrote: > ps. Hmm, maybe my lat/long are not specific enough. I entered the > coordinates for my house and I know there is a streetview site on the > street directly in front..With Google driving directions, it takes you > to the nearest road. |i figured streetview worked the same way. But > maybe you have to target the exact location of the camera icon. Does > anybody know? > > On Oct 11, 11:28 pm, ian <stilbit...@gmail.com> wrote: > > > Thanks for the snippet, > > > Now I tried to mimic your example with the following code but it still > > crashes when the button is pressed: > > > button3.setOnClickListener(new View.OnClickListener() > > { > > public void onClick(View v) > > { > > double lat = 44.640381; > > double lon =-63.5759; > > streetIntent = new > > Intent(Intent.ACTION_VIEW, Uri.parse > > ("google.streetview:cbll=" + lat + > > "," + lon + > > "&cbp=1,180,,0,1.0")); > > startActivity(streetIntent); > > > } > > } > > > I'll keep looking for another problem, as this Intent format looks OK. > > I have a shaky wireless signal this evening and that couldn't help. > > > On Oct 11, 10:28 pm, JoaJP <joachim.pfeif...@gmail.com> wrote: > > > > The following code snippet works for me: > > > > Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse > > > ("google.streetview:cbll=" + lat + > > > "," + lon + "&cbp=1,180,,0,1.0")); > > > startActivity(myIntent); > > > > Note that street views are "narrowly" draw along streets. > > > > On Oct 11, 3:55 pm, ian <stilbit...@gmail.com> wrote: > > > > > Has anyone built a Sreetview Intent? > > > > > I tried the following and don;t see what is wrong: > > > > > String uriString = > > > > "google.streetview:cbll=44.640381,-63.575911&cbp=1,90,,0,1.0"; > > > > Uri uri = Uri.parse(uriString); > > > > startActivity(new Intent > > > > (Intent.ACTION_VIEW, uri)); > > > > > Anybody have any suggestions or a working snippet? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---