Example #1
0
 public synchronized void stop() {
   setRunning(false);
   try {
     unbindService(networkServiceConnection);
     wakeUpCallback.stop();
   } catch (Exception ignored) {
   }
   networkService.stop();
   videoService.stop();
   usbService.stop();
   lightService.stop();
   orientationService.stop();
   locationService.stop();
   updateService.stop();
   stopSelf();
 }
Example #2
0
 public void restartUsbService() {
   if (usbService != null) {
     usbService.stop();
     usbService.start();
   }
 }