开发者

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

开发者 https://www.devze.com 2023-03-19 07:58 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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