关于android google api-streetview

use*_*999 3 android google-api

如何在android AVD中显示街景?我写map.setStreetView(true); 但只显示蓝色轮廓.

小智 9

这里还有一个使用示例的网站(向下滚动到第7步):http: //mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/

您必须使用long和lat点构建字符串,然后启动新的ACTION_VIEW意图.

例如:

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);
Run Code Online (Sandbox Code Playgroud)