Ejemplo n.º 1
0
 private void InitService()
 {
     _serviceConnection = new AdditionServiceConnection (this);
     var additionServiceIntent = new Intent ("com.xamarin.additionservice");
     _serviceConnection = new AdditionServiceConnection (this);
     ApplicationContext.BindService (additionServiceIntent, _serviceConnection, Bind.AutoCreate);
     Log.Debug (Tag, "Service initialized");
 }
Ejemplo n.º 2
0
        private void InitService()
        {
            _serviceConnection = new AdditionServiceConnection(this);
            var additionServiceIntent = new Intent("com.xamarin.additionservice");

            _serviceConnection = new AdditionServiceConnection(this);
            ApplicationContext.BindService(additionServiceIntent, _serviceConnection, Bind.AutoCreate);
            Log.Debug(Tag, "Service initialized");
        }
Ejemplo n.º 3
0
 private void ReleaseService()
 {
     if (IsBound)
     {
         ApplicationContext.UnbindService(_serviceConnection);
         IsBound            = false;
         _serviceConnection = null;
         Log.Debug(Tag, "Service released.");
     }
 }
Ejemplo n.º 4
0
 private void ReleaseService()
 {
     if (IsBound) {
         ApplicationContext.UnbindService (_serviceConnection);
         IsBound = false;
         _serviceConnection = null;
         Log.Debug (Tag, "Service released.");
     }
 }