Reputation: 31
How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline.
Upvotes: 3
Views: 9041
Reputation: 1031
At the bottom:
http://developer.android.com/guide/appendix/g-app-intents.html
http://mapki.com/wiki/Google_Map_Parameters#Street_View
Upvotes: 0
Reputation: 135
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);
Upvotes: 9
Reputation: 9407
You have to tell it where you want to view:
map.getStreetView().setPosition(latLng:LatLng);
map.getStreetView().setVisible(flag:boolean)
Upvotes: -1