コード例 #1
0
        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();
        }
コード例 #2
0
 public override IBinder OnBind(Intent intent)
 {
     this.Binder = new RideHandlerBinder(this);
     return(this.Binder);
 }