Code example for LocationListener

Methods: onStatusChanged

0
		} 
		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();
		criteria.setAccuracy(Criteria.ACCURACY_FINE);
		criteria.setPowerRequirement(Criteria.POWER_MEDIUM);
		criteria.setSpeedRequired(false);