public override bool OnStartJob(JobParameters jobParameters) { ProcessMainClass bck = new ProcessMainClass(); bck.launchService(this); registerRestarterReceiver(); instance = this; MyJobService.jobParameters = jobParameters; return(false); }
public override void OnReceive(Context context, Intent intent) { Log.Debug(TAG, "about to start timer " + context.ToString()); if (Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Lollipop) { scheduleJob(context); } else { registerRestarterReceiver(context); ProcessMainClass bck = new ProcessMainClass(); bck.launchService(context); } }