示例#1
0
        public override bool OnStartJob(JobParameters jobParameters)
        {
            ProcessMainClass bck = new ProcessMainClass();

            bck.launchService(this);
            registerRestarterReceiver();
            instance = this;
            MyJobService.jobParameters = jobParameters;

            return(false);
        }
示例#2
0
 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);
     }
 }