Example #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");
 }
Example #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");
        }
Example #3
0
 private void ReleaseService()
 {
     if (IsBound)
     {
         ApplicationContext.UnbindService(_serviceConnection);
         IsBound            = false;
         _serviceConnection = null;
         Log.Debug(Tag, "Service released.");
     }
 }
Example #4
0
 private void ReleaseService()
 {
     if (IsBound) {
         ApplicationContext.UnbindService (_serviceConnection);
         IsBound = false;
         _serviceConnection = null;
         Log.Debug (Tag, "Service released.");
     }
 }