Using NFC to launch actions or perform certain tasks when you tap your device on a tag is a pretty cool thing. In fact, it’s hardly something new, as we’ve even covered a few tools that let you do so easily. These past uses, however, rely on tapping a tag to perform an action. Wouldn’t it be useful for other use-cases if you could activate a task when removing a tag from your device? Just think; this could allow you to do things such as setting up an NFC-based alarm or both activating and removing settings changes when a tag is touched.
Thankfully, this is where XDA Forum Member madfish73 comes in. Similarly to the previously linked article, this functionality is accomplished using AnyTAG NFC. However, it is actually a modified version of AnyTAG that is used in this guide, and a few modifications are made to your device’s NFC.apk to add in the android.nfc.action.TAG_LOST intent and enable tag removal detection functionality.
As described by the guide author:
What this mod can do?
after did this mod, with AnyTag(mod) + tasker + secure settings plugin + secure settings helper, you can:
1. put your phone on the “Bedside tag”, your phone turn to silence mod, take the phone off the tag, your phone auto turn off silence mod
2. put your phone on the “CarDock tag”, your phone auto unlock, turn to CarHome mode, run some special apps, take the phone off the tag, your phone auto kill some special apps, exit carhome mode, lock screen …
3. Other things you can image….
If you wish to learn more, you can get started by simply heading over to the original thread._________