/** Restart the receiving, when we are back on line. */ @Override protected void onResume() { super.onResume(); this.setRequestedOrientation(Preferences.getRequestedScreenOrientation(this)); if (this.mNeedDataState) { this.onResumeForDataStateChangedListener(); } this.mMenuVoiceEnabled = Preferences.getMenuVoiceEnabled(this); }
/** Called when the activity is first created. */ protected void onCreate(final Bundle icicle, final boolean aNeedDataState) { super.onCreate(icicle); this.mMenuVoiceEnabled = Preferences.getMenuVoiceEnabled(this); this.mNeedDataState = aNeedDataState; }