你好,我在我的应用中使用谷歌地图V2我在公司测试离线地图(3楼)它工作正常,但在街上它不显示我的位置它工作正常在我的家里太(4楼) 这里的地图代码:Android谷歌地图可能不工作
mapFrag = (MapFragment) getFragmentManager().findFragmentById(R.id.map);
mapFrag.getMapAsync(this);
requestPermission();
createLocationRequest();
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(LocationServices.API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
这里是createLocationRequest方法:
mLocationRequest = new LocationRequest();
mLocationRequest.setInterval(1000 * 60 * 1);
mLocationRequest.setFastestInterval(1000 * 60 * 1);
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);