Beispiel #1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.Main);
     ((MainApplication)Application).CurrentMainActivity = this;
     AlarmReceiver.SetDoMailReceiveAlarm(this, true);
 }
Beispiel #2
0
 public override void OnReceive(Context context, Intent intent)
 {
     LogHelper.Debug("START");
     try
     {
         AlarmReceiver.SetDoMailReceiveAlarm(context, false);
     }
     catch (Exception ex)
     {
         LogHelper.Error(ex, "SetDoMailReceiveAlarm Error");
     }
     LogHelper.Debug("END");
 }