How to open a street view in virtual reality mode programmatically?

蓝咒 提交于 2019-12-30 10:12:50

问题


Using the following code I open a street view of a particular location using its latitude and longitude.

Intent streetView = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("google.streetview:cbll=27.173891,78.042068" + "&cbp=1,90,,0,1.0&mz=8"));
startActivity(streetView);

When the street view of that location appears I need to double tap on the rotating arrow icon to the bottom right of the screen to get to the virtual reality mode, but I want to directly view the street view in virtual reality mode without the double tap.

Is this possible? How can I programmatically achieve it? Thanks.

来源:https://stackoverflow.com/questions/32448529/how-to-open-a-street-view-in-virtual-reality-mode-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!