android - Check if NFC tag is near -


is possible force android check if nfc tag near? i'm able read tag when android detects it, force check if tag near @ specific moment

what want in general not possible. if can live dirty hack following work (thanks unspecified behaviour):

first disable reader-mode of supported tag types. brings nfc subsystem clean state, e.g. makes sure nfc controller have no connection tag.

once done restore reader-mode again. if tag present @ moment usual discovery action intent. may take second or 2 though.

control of reader-mode possible using nfcadapter.enablereadermode , nfcadapter.disablereadermode


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -