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. How to reduce system memory on the ADP1

While doing work with the ADP1 we wanted to reduce the system ram from
the default 101MB. Normally you can do this is the kernel command line
with a mem=xM, this however does not work. After some research we
discovered that upon boot-up the system memory size is set to 101MB
via the file board-trout.c in the kernel directory under arch/arm/mach-
msm/.

Inside the function trout_fixup, the line:

mi->bank[0].size = (101*1024*1024);

Change the 101 to what system memory size you want. Recompile. Your
system memory is now reduced.


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Mounting non-yaffs2 off NAND

We are currently working with the ADP1. We are trying to mount a non-
yaffs2 system off the nand, such as cramfs or jffs2. Has anyone been
able to successfully mount a non-yaffs2 system off nand?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Prevent activity to appear on android desktop?

4. Is there a flowchart? How Users are Notified..

5. shared private component between application

6. How to display Smileys over TextView using ImageSpan in android

7. How to intercept SMS without loading SMS to UI?