How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline.
A:
You have to tell it where you want to view:
map.getStreetView().setPosition(latLng:LatLng);
map.getStreetView().setVisible(flag:boolean)
Marcelo
2010-08-10 10:35:57
Sorry,your answer is not for android.I think maybe my location not services.
2010-08-10 10:50:05
A:
Also here is a site with an example in use (scroll down to step 7): http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/
You have to build the string using your long and lat points, and then launch a new ACTION_VIEW intent.
For example:
Intent streetView = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll="+ latitude+","+longitude+"&cbp=1,99.56,,1,-5.27&mz=21"));
startActivity(streetView);
Brian
2010-09-22 20:27:21