@Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   Preferences.setScreenOn(this);
   mAudioManager = Global.getAudioManager(this);
   mSpeechRecognition = SpeechRecognition.getInstance(this);
 }
 @Override
 protected void onResume() {
   super.onResume();
   mSpeechRecognition.setSpeechRecognition(this, Preferences.isSpeechRecognitionOn(this));
 }