I’m trying to open Google Street View in fullscreen mode but it’s not working.
This is my code:
String uri = String.format("google.streetview:cbll=%f,%f", latitude, longitude);
Intent streetViewIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
streetViewIntent.setPackage("com.google.android.apps.maps");
if (streetViewIntent.resolveActivity(getReactApplicationContext().getPackageManager()) != null) {
streetViewIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getReactApplicationContext().startActivity(streetViewIntent);
}
Please someone help me!-
I tried to use the link google.streetview:cbll=%f,%f
but it does not open on fullscreen. The user needs to click on
New contributor
Pedro Furquim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.