Create file called MyApplication.java (you can change the name but remember to change file name also in class). This file will create the job for our application.

import android.app.Application;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import com.evernote.android.job.JobManager;


public class MyApplication extends Application {


    @Override
    public void onCreate() {
        super.onCreate();
        JobManager.create(getApplicationContext()).addJobCreator(new JobSingleton()); // we are creating Job using our JobSingleton file, after creation this will be red, do not worry, we will fix it in new step
        Log.d("JobTag","Job Created"); // you can delete the whole line before releasing app, this is used only for Logcat debuging, to check out our Job is created
  

    }
   
}

Now we need to add our MyApplication.java to AndroidManifest.xml like this:

<application
    
        android:name=".MyApplication"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        >