@Override
  public boolean onStartJob(@NonNull JobParameters job) {
    Log.i(JobFormActivity.TAG, "onStartJob called");

    Bundle extras = job.getExtras();
    assert extras != null;

    int result = extras.getInt("return");

    CentralContainer.getStore(getApplicationContext()).recordResult(job, result);

    return false; // No more work to do
  }
A very simple JobService that merely stores its result and immediately finishes.
testapp/src/main/java/com/firebase/jobdispatcher/testapp/DemoJobService.java