Code example for LocationListener

Methods: onStatusChanged

0
		public void onStatusChanged(String provider, int status, Bundle extras) {
			// LocationHandler.this.mNumSatellites = extras.getInt( 
			// "satellites", NOT_SET); // TODO Check on an actual device 
			try { 
				if (provider.equals(bestProvider())) {
					mLocationReceiver.onStatusChanged(provider, status, extras);
				} 
			} catch (Exception e) {
				log.log(Level.SEVERE,"",e);
			}	 
		} 
 
		public void onProviderEnabled(String a) { /* ignore */
		} 
 
		public void onProviderDisabled(String a) { /* ignore */
		} 
	} 
 
	public void setLocationTimer(LocationTimer timer) {
Connect your IDE to all the code out there  Get Codota for Java