Slide 69
Slide 69 text
boolean enableSystemAlarmService = false;
if (Build.VERSION.SDK_INT >=
WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) {
scheduler = new SystemJobScheduler(context);
setComponentEnabled(context,
SystemJobService.class, true);
Log.d(TAG, "Created SystemJobScheduler and
enabled SystemJobService");
} else {
try {
scheduler =
tryCreateFirebaseJobScheduler(context);
enableFirebaseJobService = true;
Log.d(TAG, "Created FirebaseJobScheduler");
} catch (Exception e) {
// Also catches the exception thrown if Play
Services was not found on the device.
scheduler = new
SystemAlarmScheduler(context);
enableSystemAlarmService = true;
Log.d(TAG, "Created SystemAlarmScheduler");
}
}
"1*-FWFM劢弫ד֮לծ
'JSFCBTF+PC4DIFEVMFS
鑐ׅ