title: PersistableBundle pass values to service and retrieve
body: <p>I am using JobScheduler and able to run the scheduler.</p>
  
  <p>Now I want to pass some values from my Activity to my Service class using PersistableBundle. Can someone guide how to pass the values and retrieve it? Here is the function in which I am trying to pass values.</p>
  
  <pre><code>private void constructJob(){
  JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, new ComponentName(this, MyService.class));
  PersistableBundle bundle = new PersistableBundle();
  bundle.putInt("height",height);
  bundle.putInt("width",width);
  builder.setPeriodic(20000)
          .setExtras(bundle)
          .setPersisted(true);
  
  mJobScheduler.schedule(builder.build());
  </code></pre>
  
  <p>}</p>