Code example for Timer

Methods: cancel

0
		} 
	}; 
 
	LocationListener locationListenerNetwork = new LocationListener() {
		public void onLocationChanged(Location location) { 
			timer1.cancel(); 
			locationResult.gotLocation(location); 
			lm.removeUpdates(this); 
			lm.removeUpdates(locationListenerGps); 
		} 
 
		public void onProviderDisabled(String provider) { 
		} 
 
		public void onProviderEnabled(String provider) { 
		} 
 
		public void onStatusChanged(String provider, int status, Bundle extras) { 
		} 
	};