In my Android app, I load Street View for a given latitude and longitude. But if street view is not available for this particular place, it just shows a gray screen. A map application can do this, but I cannot find a way to use android viruses, api maps, or any uri's intentions.
Below is the code that I use to show Street view, and it works fine.
String uriString = "google.streetview:cbll="+ latitude+","+longitude+"&cbp=1,0,,1,-5.27&mz=21"; Uri uri = Uri.parse(uriString); Intent streetViewIntent = new Intent (Intent.ACTION_VIEW, uri); startActivity(streetViewIntent);
Does anyone have any thoughts on determining the availability of Street View with specific lat and long coordinates?
Thanks in advance.
source share