Android startActivityForResult streetview get data

How can I get the result from streetview? Such as Lat, Lng, Pitch, Header, FOV, Zoom ... etc.

I want to do an event, click the "walk" button to open a street view. User goes to a place somewhere, save it.

I am trying to use startActivityForResult to view the streets, but I cannot select a location. He just opened a street view for viewing only.

 Intent streetView = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll="+ objLatitude+","+objLongitude+"&cbp=1,99.56,,1,-5.27&mz=21")); startActivityForResult(streetView,10); 

Any idea or any other way can do this? Thanks to everyone.

+4
source share
1 answer

Try the following:

 Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.streetview:cbll=" + (float)aGeoPoint.getLatitudeE6()/1000000 + "," + (float)aGeoPoint.getLongitudeE6()/1000000 +"&cbp=1,180,,0,1.0")); startActivity(myIntent); 
0
source

Source: https://habr.com/ru/post/1440913/


All Articles