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
Post a Comment