Java 类android.nfc.cardemulation.HostApduService 实例源码

项目:android-kitkat-nfc-library    文件:NfcResponder.java   
/**
 * This has to be called whenever the system detects that the NFC has been
 * aborted.
 * 
 * @param reason
 *            see {@link HostApduServiceNfcLib}
 */
public void onDeactivated(int reason) {
    if (Config.DEBUG)
        Log.d(TAG, "deactivated due to " + (reason == HostApduService.DEACTIVATION_LINK_LOSS ? "link loss" : "deselected") + "(" + reason + ")");

    shutdownTask();
    task = new TimeoutTask();
    executorService.submit(task);
}