title: Android JobScheduler. Can I schedule job every 15 seconds
body: <p>My code is work. But I'm not sure that this will work on all devices and always.
  Can I use JobScheduler like this?</p>
  
  <p>Start method:</p>
  
  <pre><code>public static void schedule() {
      JobScheduler scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
  
      JobInfo job = new JobInfo.Builder(1, new ComponentName(context, MySchedulerService.class))
              .setMinimumLatency(15000)
              .build();
  
      scheduler.schedule(job);
  }
  </code></pre>
  
  <p>Service:</p>
  
  <pre><code>public static class MySchedulerService extends JobService {
  
      public boolean onStartJob(JobParameters params) {
          schedule();
         /*   Business code   */
          stopSelf();
          return false;
      }
  
      public boolean onStopJob(JobParameters params) {
          return false;
      }
  }
  </code></pre>