fixed the errors. Implemented interface mechanism to communicate between GPSTracker service and MainActivity.
  Added gps.stopRequestingUpdate to activities onpause method.