package com.incidentlocator.client;

import android.os.Bundle;
import android.location.Location;
import android.location.LocationListener;
import android.util.Log;
import com.incidentlocator.client.IncidentLocatorInterface;

public class GetLocationListener implements LocationListener {
    private static final String TAG = "IncidentLocatorLocationListener";
    private static IncidentLocatorInterface IL;

    // constructor - get interface from main activity
    public GetLocationListener (IncidentLocatorInterface i) { IL = i; }

    @Override
    public void onLocationChanged(Location location) {
        IL.updateLocation(location);
        Log.d(TAG, String.format("[%s]=>%s", location.getProvider(), location.toString()));
    }

    @Override
    public void onProviderDisabled(String provider) {}

    @Override
    public void onProviderEnabled(String provider) {}

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {}
}


@@ -398,18 +398,19 @@
 terface 
-IL
+app
 ;%0A%0A    /
@@ -523,16 +523,29 @@
 i) %7B
- IL
+%0A        app
  = i;
+%0A   
  %7D%0A%0A
@@ -625,10 +625,11 @@
     
-IL
+app
 .upd

change name of passed interface