title: Android JobScheduler does not start job when Wi-Fi network appears
body: <p>I'm trying to setup <code>JobScheduler</code> in order to upload some images to the server over wi-fi.
  Here is ho I set it up:</p>
  
  <pre><code>    PersistableBundle params = new PersistableBundle();
      params.putString(UploadJobService.EXTRA_MEDIA, GsonFactory.getGson().toJson(mMedia));
      params.putString(UploadJobService.EXTRA_TEMP_ID, tempId);
      params.putInt(UploadJobService.EXTRA_IS_PUBLIC, mIsAlbumPublic.value());
  
      JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, new ComponentName(this, UploadJobService.class));
      builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED);
      builder.setPersisted(true);
      builder.setExtras(params);
      builder.setOverrideDeadline(DateUtils.HOUR_IN_MILLIS);
      JobScheduler.getInstance(this).schedule(builder.build());
  </code></pre>
  
  <p>If wi-fi network is available it uploads my content well. But if I turn it off, force service to be scheduled and then turn wi-fi on it does not start upload.</p>
  
  <p>Am I doing something wrong ? Or <code>JobScheduler</code> is not for this purpose and I should use broadcast receiver for network availability ?
  Thanks.</p>