@ Override
Protected void onNewIntent (Intent Intent) {
If (nfcReadCardHelper isNFC (intent)) {
If (nfcTask==null) {
The e (" MainActivity ", "return to the intent of available");
NfcTask=new NFCReadTask (intent). ExecuteOnExecutor (Executors
NewCachedThreadPool ());
}
} else {
The e (" MainActivity ", "the returned intent, not with");
}
}
CodePudding user response:
Android: launchMode="singleInstance"CodePudding user response:
Set android: launchMode="singleTop", can not repeat open interface, can read the data