protected override void OnPause() { Log.Debug("OnPause", ""); base.OnPause(); messageItem = new MessageItem(messageEditText.Text); SettingsLoader.Save(new SettingsData(contactData, messageItem)); UnregisterReceiver(m_smsSentBroadcastReceiver); UnregisterReceiver(m_smsDeliveredBroadcastReceiver); _locationManager.RemoveUpdates(this); }
protected override void OnDestroy() { messageItem = new MessageItem(messageEditText.Text); SettingsLoader.Save(new SettingsData(contactData, messageItem)); base.OnDestroy(); }