Java Code Examples for com.evernote.android.job.JobManager#instance()
The following examples show how to use
com.evernote.android.job.JobManager#instance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java From android-job with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mJobManager = JobManager.instance(); if (savedInstanceState != null) { mLastJobId = savedInstanceState.getInt(LAST_JOB_ID, 0); } CompoundButton enableGcm = findViewById(R.id.enable_gcm); mRequiresCharging = findViewById(R.id.check_requires_charging); mRequiresDeviceIdle = findViewById(R.id.check_requires_device_idle); mNetworkTypeSpinner = findViewById(R.id.spinner_network_type); ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, getNetworkTypesAsString()); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); mNetworkTypeSpinner.setAdapter(adapter); enableGcm.setChecked(JobConfig.isApiEnabled(JobApi.GCM)); enableGcm.setEnabled(JobApi.GCM.isSupported(this)); enableGcm.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { JobConfig.setApiEnabled(JobApi.GCM, isChecked); } }); }
Example 2
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 3
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 4
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 5
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 6
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 7
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 8
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 9
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 10
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 11
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 12
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 13
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 14
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 15
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }
Example 16
Source File: JobsModule.java From Building-Professional-Android-Applications with MIT License | 4 votes |
@Provides @Singleton JobManager provideJobManager(Application application, AppJobCreator jobCreator) { JobManager.create(application).addJobCreator(jobCreator); return JobManager.instance(); }