예제 #1
0
 @Override
 public void onDestroy() {
   for (UserLocationDetector detector : detectors) {
     if (detector instanceof Serviceable) ((Serviceable) detector).close(this);
   }
   for (UserLocationPublisher publisher : publishers) {
     if (publisher instanceof Serviceable) ((Serviceable) publisher).close(this);
   }
   cleanUpService();
 }