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