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