如何在android AVD 中显示街景? 我写 map.setStreetView(true);但只显示蓝色轮廓。
最佳答案
这里还有一个网站,其中包含一个正在使用的示例(向下滚动到第 7 步): http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/
您必须使用您的 long 和 lat 点构建字符串,然后启动一个新的 ACTION_VIEW Intent 。
例如:
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);
关于android - 关于 android google api-streetview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3447723/