I have an abstract of my GPSTracker. It returns the location of the user. It's works.
public class GPSTracker extends Service implements LocationListener {
public GPSTracker(Context context) {
this.mContext = context;
getLocation();
}
public Location getLocation() {
//GET LOCATION CODE
return location;
}
So, I call this service in my MainActivity using this code:
gps = new GPSTracker(this, marker, googleMap, playbackService);
And it's getting the actual location of the user. I want to get this location on my Activity. The service need to send the Location to my activity. Can anyone helpme?