这是我获得职位的代码:
IMyLocationProvider ilp = new IMyLocationProvider() {
@Override
public void stopLocationProvider() {
}
@Override
public boolean startLocationProvider(IMyLocationConsumer arg0) {
return false;
}
@Override
public Location getLastKnownLocation() {
return null;
}
};
MyLocationNewOverlay myLocationOverlay = new MyLocationNewOverlay(getApplicationContext(), ilp,mMapView);
mMapView.getOverlays().add(myLocationOverlay);
myLocationOverlay.enableMyLocation(ilp);
myLocationOverlay.enableFollowLocation();
但结果是屏幕变蓝了没有地图,哪里出错了?