Code example for LocationListener

Methods: onLocationChanged

0
				locationListener.onLocationChanged(new Location("No Provider Available")); 
			} else { 
				locationListener.onLocationChanged(location); 
			} 
			 */ 
			locationListener.onLocationChanged(location); 
		} 
		public void onProviderDisabled(String provider) { 
			locationListener.onProviderDisabled(provider);	 
		} 
		public void onProviderEnabled(String provider) { 
			locationListener.onProviderEnabled(provider);	 
		} 
		public void onStatusChanged(String provider, int status, Bundle extras) { 
			locationListener.onStatusChanged(provider, status, extras); 
		} 
	}; 
	 
	/** Default Constructor 
	 * @param lmngr the LocationManager to listen to 
	 * @param listener the LocationListener that will receive location events.