public void OnServiceConnected(ComponentName name, IBinder binder)
        {
            _binder = binder as AndroidSensusServiceBinder;

            if (_binder != null && ServiceConnected != null)
                ServiceConnected(this, new AndroidServiceConnectedEventArgs(_binder));
        }
        public override IBinder OnBind(Intent intent)
        {
            AndroidSensusServiceBinder binder = new AndroidSensusServiceBinder(SensusServiceHelper.Get() as AndroidSensusServiceHelper);

            lock (_bindings)
                _bindings.Add(binder);

            return binder;
        }
        public override IBinder OnBind(Intent intent)
        {
            AndroidSensusServiceBinder binder = new AndroidSensusServiceBinder(SensusServiceHelper.Get() as AndroidSensusServiceHelper);

            lock (_bindings)
                _bindings.Add(binder);

            return(binder);
        }
Exemple #4
0
        public void OnServiceConnected(ComponentName name, IBinder binder)
        {
            _binder = binder as AndroidSensusServiceBinder;

            if (_binder != null && ServiceConnected != null)
            {
                ServiceConnected(this, new AndroidServiceConnectedEventArgs(_binder));
            }
        }
        public override IBinder OnBind(Intent intent)
        {
            AndroidSensusServiceBinder binder = new AndroidSensusServiceBinder();

            lock (_bindings)
            {
                _bindings.Add(binder);
            }

            return(binder);
        }
 public AndroidSensusServiceConnection()
 {
     _binder = null;
 }
Exemple #7
0
 public AndroidSensusServiceConnection()
 {
     _binder = null;
 }