package es.craftsmanship.toledo.katangapp.utils;

import android.app.Service;

import android.content.Intent;

import android.location.Location;
import android.location.LocationListener;

import android.os.Bundle;
import android.os.IBinder;

import android.support.annotation.Nullable;

/**
 * @author Cristóbal Hermida
 */
public class GPSTracker extends Service implements LocationListener {

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onLocationChanged(Location location) {
    }

    @Override
    public void onProviderDisabled(String provider) {
    }

    @Override
    public void onProviderEnabled(String provider) {
    }

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

}
@@ -71,17 +71,48 @@
 ervice;%0A
+import android.content.Context;
 %0A
-
 import a
@@ -134,17 +134,16 @@
 Intent;%0A
-%0A
 import a
@@ -206,25 +206,24 @@
 onListener;%0A
-%0A
 import andro
@@ -263,17 +263,16 @@
 Binder;%0A
-%0A
 import a
@@ -345,16 +345,16 @@
 ida%0A */%0A
-
 public c
@@ -416,16 +416,137 @@
 ener %7B%0A%0A
+%0A    private final Context mContext;%0A%0A%0A    public GPSTracker(Context context) %7B%0A        this.mContext = context;%0A    %7D%0A%0A%0A
     @Nul

add contructor method for setting android context