stop GPS Tracking - Android Phone

Android examples for Phone:GPS

Description

stop GPS Tracking

Demo Code


//package com.java2s;

import android.location.LocationListener;
import android.location.LocationManager;

public class Main {
    private static LocationManager locationManager;
    private static LocationListener locationListener;

    public static void stopGPSTracking() {
        locationManager.removeUpdates(locationListener);
    }//from w  w w. j  ava 2s .  co  m
}

Related Tutorials