Code example for LocationListener

Methods: onProviderEnabled

0
  @Override 
  public void onProviderEnabled( final String provider ) {
    ListActivity.info("provider enabled: " + provider);
         
    if ( mapLocationListener != null ) {
      mapLocationListener.onProviderEnabled( provider );
    } 
  } 
   
  @Override 
  public void onStatusChanged( final String provider, final int status, final Bundle extras ) {
    ListActivity.info("provider status changed: " + provider + " status: " + status);
         
    if ( mapLocationListener != null ) {
      mapLocationListener.onStatusChanged( provider, status, extras );
    } 
  } 
 
  /** newLocation can be null */ 
  private void updateLocationData( final Location newLocation ) {
Contextual code suggestions in your IDE  Get Codota for Java