Code example for LocationListener

Methods: onProviderDisabled

0
		} 
	} 
 
	public void onProviderDisabled(String provider) {
		if (mLocationListener != null) {
			mLocationListener.onProviderDisabled(provider);
		} 
	} 
 
	public void onProviderEnabled(String provider) {
		if (mLocationListener != null) {
			mLocationListener.onProviderEnabled(provider);
		} 
	} 
 
	public Location getLastKnownLocation() {
		if (currentProvider == null){
			return null; 
		} 
		return lm.getLastKnownLocation(currentProvider);
Experience pair programming with AI  Get Codota for Java