code: public static boolean isServiceRunning(Class<? extends Service> service) {
          ActivityManager manager = (ActivityManager) QuickUtils.getContext().getSystemService(Context.ACTIVITY_SERVICE);
          for (ActivityManager.RunningServiceInfo runningServiceInfo : manager.getRunningServices(Integer.MAX_VALUE)) {
              if (service.getName().equals(runningServiceInfo.service.getClassName())) {
                  return true;
              }
          }
          return false;
      }
docs: Is this service running?
  
  @param service service to check
  @return true if the service is running