Android谷歌地图无需动画即可进入当前位置

Android谷歌地图无需动画即可进入当前位置,android,google-maps,Android,Google Maps,我知道这可能有点傻,我一定错过了一些东西,但我如何禁用动画,将所有的方式放大到我的标记,并立即加载谷歌地图和我的当前位置 这是我当前的代码 @Override public void onLocationChanged(Location location) { currentLocation = location; String curr_location = currentLocation.getLatitude()+ ","+currentLocati

我知道这可能有点傻,我一定错过了一些东西,但我如何禁用动画,将所有的方式放大到我的标记,并立即加载谷歌地图和我的当前位置

这是我当前的代码

@Override
    public void onLocationChanged(Location location) {
        currentLocation = location;
        String curr_location = currentLocation.getLatitude()+ ","+currentLocation.getLongitude();
        LatLng coordinates = new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());
        CameraUpdate current = CameraUpdateFactory.newLatLngZoom(coordinates,15);
        googleMap.animateCamera(current);
        UpdateLocation(userid,email,curr_location);
    }
如果可能的话,我想移除动画摄影机。谢谢

更换

googleMap.animateCamera(current);

googleMap.moveCamera(current);