Code example for LocationListener

Methods: onProviderEnabled

0
		} 
		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. 
	 */ 
	public LocationFinder(LocationManager lmngr, LocationListener listener) {
		locationManager = lmngr;//(LocationManager) app.getSystemService(Context.LOCATION_SERVICE);
		locationListener = listener;
		 
		criteria = new Criteria();