开发者

How can I embed a custom streetview in android app?

I know this is the way to start a street view Intent:

String ur开发者_如何学编程iString = "google.streetview:cbll=44.640381,-63.575911&cbp=1,90,,0,1.0"; 
Uri uri = Uri.parse(uriString); 
startActivity(new Intent(Intent.ACTION_VIEW, uri)); 

What I want to do is to listen the GeoPoint (MapView.getMapCenter()) of the street view.

e.g. Initially user open streetview at GeoPoint A. User can tap to move along the street.

I want to record all footprints (GeoPoints) of the user. Any idea?

Regards, Ken


Android does not currently support streetview in the current Maps API.

What you are doing is starting a new intent for the Maps application, leaving your application.

You will need to find another solution using MapView and see if you can find a library that gives you the streetviews.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜