Streetview Intent Format

by ian » Mon, 12 Oct 2009 06:55:55 GMT


Sponsored Links
 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?
--~--~---------~--~----~------------~-------~--~----~



Streetview Intent Format

by JoaJP » Mon, 12 Oct 2009 09:29:45 GMT


 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.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Streetview Intent Format

by ian » Mon, 12 Oct 2009 10:29:00 GMT


 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.








--~--~---------~--~----~------------~-------~--~----~



Streetview Intent Format

by ian » Mon, 12 Oct 2009 10:40:35 GMT


 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?





--~--~---------~--~----~------------~-------~--~----~



Streetview Intent Format

by ian » Mon, 12 Oct 2009 23:23:26 GMT


 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?








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. multi-touch not working !!

I am getting this multi-touch events in my application for which the
logs are shown below.Multitouch is not working in my application.Does
it mean that there is some problem with framework or my application.

Sequence:Just two fingers pressed to the screen,dragged and then
lifted both.

Inputdevice: ID[0] Down

Inputdevice: ID[0] Down

Inputdevice: ID[1] Up

Inputdevice: ID[0] Up

I think for the last event it should have been ID[1] instead of 0??
Am i right?Is it a framework problem or some problem with my
application?

-- 

2. Kondisi Signal di Bengkul

Berikut kondisi signal di Provinsi Bengkulu siang ini


Onyx : 215A943C
Nexus One The Android #1 - IPhone 3G
The WranglerBerry B 16 TR - YB4MF
http://www.herawansyah.blogspot.com

-- 
"Indonesian Android Community [id-android]" 

3. Multiple Listviews in single Activity?

4. Wtt: pengen tuker tambah Mile dengan N1

5. Receive data in a serlvet

6. How to handle plural with resources

7. AutoCompleteTextView weirdness