public void OnServiceDisconnected(ComponentName name)
 {
     binder = null;
 }
 public BackgroundServiceConnection()
 {
     binder = null;
 }
 public void OnServiceConnected(ComponentName name, IBinder service)
 {
     binder = service as BindServiceConnection;
 }
 public override IBinder OnBind(Intent intent)
 {
     // throw new NotImplementedException();
     this.binder = new BindServiceConnection(this);
     return(binder);
 }