public override void OnDestroy() { Binder = null; // Stop the handler. handler.RemoveCallbacks(runnable); // Remove the notification from the status bar. var notificationManager = (NotificationManager)GetSystemService(NotificationService); notificationManager.Cancel(Constants.SERVICE_RUNNING_NOTIFICATION_ID); timestamper = null; isStarted = false; base.OnDestroy(); }
public override IBinder OnBind(Intent intent) { this.Binder = new RideHandlerBinder(this); return(this.Binder); }