开发者

How to get Hybrid view of google map in Android Application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

i can see the difference on Google Maps, but on an Android MapActivity I'm struggling to find the difference. For 'map' I call: mapView.setSatellite(false); For 'sa开发者_运维问答tellite' I call: mapView.setSatellite(true); But for hybrid view... I tried playing with mapView.setStreetView(true); but this doesn't seem to affect anything either way. Any ideas?


There are lots of posts that will help you implement it:

Services

Obtaining User Location

Good luck!


create a class that extends Service

public class myService extends Service

override the

public void onStart(Intent intent, int startId) {

in your activity

if(!myService.isInstanceCreated())
startService(new Intent(youractivityclass.this, myService.class)); 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜