@Override
 public void onNewIntent(Intent intent) {
   super.onNewIntent(intent);
   if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(intent.getAction())) {
     if (userAccount != null) {
       String tmp = BaseNfc.ScanNfc(this, intent);
       if (tmp != null) {
         userAccount.setText(tmp);
         Logining();
       }
     }
     intents = intent;
   }
 }
 @Override
 public void onResume() {
   super.onResume();
   nfcAdapter.enableForegroundDispatch(this, pendingIntent, intentFilters, techList);
   if (isnews) {
     if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(getIntent().getAction())) {
       if (userAccount != null) {
         String tmp = BaseNfc.ScanNfc(this, getIntent());
         if (tmp != null) {
           userAccount.setText(tmp);
           Logining();
         }
       }
       intents = getIntent();
       isnews = false;
     }
   }
 }