Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

about android google api-streetview

How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline.

like image 876
user415999 Avatar asked Jul 09 '26 19:07

user415999


1 Answers

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);
like image 159
Brian Avatar answered Jul 13 '26 14:07

Brian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!