Android 当前位置指针正在跳过i转储以解决问题

Android 当前位置指针正在跳过i转储以解决问题,android,performance,shell,android-layout,android-fragments,Android,Performance,Shell,Android Layout,Android Fragments,当前位置指针正在跳转我转储以解决此问题。我希望停止跳转当前指针。我希望在不跳转的情况下显示指针。 我试了4天,但没有完成这项任务 这是OnLocationChange代码 任何人都请帮帮我…请帮帮我。。。。。。。 private boolean initMap() { if (mMap == null && FirstTimeMapIniciate == 0) { SupportMapFragment mapFragment = (SupportMapF

当前位置指针正在跳转我转储以解决此问题。我希望停止跳转当前指针。我希望在不跳转的情况下显示指针。 我试了4天,但没有完成这项任务

这是OnLocationChange代码


任何人都请帮帮我…请帮帮我。。。。。。。
 private boolean initMap() {
    if (mMap == null && FirstTimeMapIniciate == 0) {
        SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
        mMap = mapFragment.getMap();
        mMap.setMyLocationEnabled(true);
        mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);


    }
    return (mMap != null);
}
 @Override
public void onConnected(Bundle bundle) {
    Toast.makeText(this, "Ready to map!", Toast.LENGTH_SHORT).show();

    mListener = new LocationListener() {
        @Override
        public void onLocationChanged(Location location) {
            latitude = location.getLatitude();
            longitude = location.getLongitude();
            LatLng latLng1 = new LatLng(latitude, longitude);
            MarkerOptions mp = new MarkerOptions();
            mp = new MarkerOptions();
            mp.position(new LatLng(location.getLatitude(),
                    location.getLongitude()));
            mMap.setMyLocationEnabled(true);

            // mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
            Toast.makeText(MainActivity.this, "Location : " + location.getLatitude() + ", " + location.getLongitude(), Toast.LENGTH_LONG).show();
            if (FirstTimeMapIniciate == 0) {
                gotoLocation(location.getLatitude(), location.getLongitude(), 15);

                FirstTimeMapIniciate = 1;

            }
            AppUtill.UniqueId();
            new JSONAsyncTask().execute("http://103.8.7/hajjapi/api/GPSLocator/GetLocations");

            if (AppStatus.getInstance(getContext()).isOnline()) {


            } else {

                Toast.makeText(MainActivity.this, "Turn On your WIFI ", Toast.LENGTH_LONG).show();

            }

         /*   if (marker != null) {
                marker.remove();

            }*/


        }
    };
    LocationRequest request = LocationRequest.create();
    request.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
    request.setInterval(1000);
    request.setFastestInterval(1000);
    LocationServices.FusedLocationApi.requestLocationUpdates(mLocationClient, request, mListener);
}