-3
Google Maps APIを使用するAndroidアプリがあり、Huawei Rio - L03やSamsung Galaxy Grand Primeなど一部のデバイスでは間違った場所が設定されますが、Motorola Moto X、HTC欲望626は正しく動作します一部のデバイスでGoogle Maps API Androidの場所が間違っています
誰かがなぜ知っていますか?
私は本当に
@Override
public void onLocationChanged(Location location) {
LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
mMap.animateCamera(CameraUpdateFactory.zoomTo(15));
//Remove location updates for only set it one time
if (gpsSettings.mGoogleApiClient != null)
LocationServices.FusedLocationApi.removeLocationUpdates(gpsSettings.mGoogleApiClient, this);
}
間隔と優先順位を調整してみてください? – ZeroOne
私は更新され、それは私はあなたが役立つことを願っ@ZeroOneを教えていくつかのコードが必要な場合:(助けが必要私、ありがとう! –