private void SwitchTts() { if (ttsManager == null) ttsManager = new TextToSpeechManager(Activity); }
public override void OnSaveInstanceState(Bundle outState) { base.OnSaveInstanceState(outState); ConnectionManager.SignalMonitor.Stop(); outState.PutBoolean(MONITOR_KEY, startMonitor); outState.PutBoolean(VOICE_KEY, switchVoice.Checked); SavedInstanceState = true; if (ttsManager != null) { ttsManager.Stop(); ttsManager.Dispose(); ttsManager = null; } }