PeriodicWorkRequest with WorkManager
问题 Well as WorkManager is newly introduce in Google I/O, I'm trying to use workmanager to perform task periodically, What I'm doing is, Scheduling the work using PeriodicWorkRequest as following : Constraints constraints = new Constraints.Builder().setRequiredNetworkType(NetworkType.CONNECTED).build(); PeriodicWorkRequest build = new PeriodicWorkRequest.Builder(SyncJobWorker.class, MY_SCHEDULE_TIME, TimeUnit.MILLISECONDS) .addTag(TAG) .setConstraints(constraints) .build(); WorkManager instance =