Android check if nfc tag is found

Is it possible to check (periodically) if nfc is close? I want to put nfc tag inside the car holder and wenn I take the phone out of the car the phone should stop sending GPS.

All I could find was this: How do I know if the NFC tag is now in range from Android? But in my scenario, the Display is off.

Is there a way to do this or is there a way to detect when there is no nfc tag?

+1


source to share


1 answer


Unfortunately, you cannot when the display is off. Android read / write mode is disabled when the screen is off.



Besides the default Android NFC behavior, there is an app that allows you to detect NFC tags when the screen is off (or even locked). I haven't tested it myself, but if you want to achieve this you can try it. I am assuming your phone must be rooted to use this app.

+3


source







All Articles