private void onStartSwiper() {
   if (ex_cardSwiper == null) {
     ex_cardSwiper = new CardSwiper();
     ex_cardSwiper.onCreate(this, this);
   }
   ex_cardSwiper.onStart();
 }
 @Override
 protected void onPause() {
   isPause = true;
   if (ex_cardSwiper != null) {
     ex_cardSwiper.onPause();
   }
   if (ex_soundWave != null) {
     ex_soundWave.onPause();
   }
   if (ex_codeScanner != null) {
     ex_codeScanner.onPause();
   }
   super.onPause();
 }
  @Override
  protected void onDestroy() {
    Log.d(TAG, this + "onDestroy");

    if (ex_cardSwiper != null) {
      ex_cardSwiper.onDestroy();
      ex_cardSwiper = null;
    }
    if (ex_soundWave != null) {
      ex_soundWave.onDestroy();
      ex_soundWave = null;
    }
    if (ex_codeScanner != null) {
      ex_codeScanner.onDestroy();
      ex_codeScanner = null;
    }
    super.onDestroy();
  };
 @Override
 protected void onResume() {
   if (!isPause) {
     super.onResume();
     return;
   } else {
     isPause = false;
   }
   Log.d(TAG, "NearFieldController onResume");
   if (ex_cardSwiper != null) {
     ex_cardSwiper.onStart();
   }
   if (ex_soundWave != null) {
     ex_soundWave.onStart();
   }
   if (ex_codeScanner != null) {
     ex_codeScanner.onResume();
   }
   super.onResume();
 }
 private void onStopSwiper() {
   if (ex_cardSwiper != null) {
     ex_cardSwiper.onPause();
   }
 }