hi,

this is in regard to the above code posted, i want to know does cbp values 
change with respect to the lat/lng or it remains same and how to i get 
those values for particular lat/lng if it changes ?

On Monday, 12 October 2009 07:58:11 UTC+5:30, ian 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to