问题
i used to launch an intent from my app to Maps to display a street view panorama. Since some days when i launch the intent Maps says : "Street View isn't available here". I try to run a new project with only the intent as Google says:
Uri gmmIntentUri = Uri.parse("google.streetview:cbll=46.414382,10.013988");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
but i receive the same message. The same coordinates in standalone Maps work fine. Are there any changes due to third app in maps api?
回答1:
This problem occurs from version 9.43.0 released on 21 December. You can find and try old working versions (last working is 9.42.3) in some repositories like this.
I hoped bug was corrected with latest today release (9.45.1) but it still doesn't work.
UPDATE: Today 3 February, Street view intent seems to work again, at least in version 9.44.3 of google maps.
来源:https://stackoverflow.com/questions/41939641/android-intent-street-view-does-not-work-anymore