code: public void stopTracking() {
          if (!isTracking) {
              return;
          }
          Session session = getSession();
          if (session != null) {
              session.removeCallback(callback);
          }
          broadcastManager.unregisterReceiver(receiver);
          isTracking = false;
      }
docs: Stop tracking the Session and remove any callbacks attached
  to those sessions.