Reputation: 13
I'm a beginner when it comes to Android development, but I really want to work out what potential NFC holds for a project I'm working on.
I've installed Trigger on my Galaxy S3 and have used it successfully to write a function to an NFC tag that toggles airplane mode on and off on my phone. The trouble is, I want the tag to be able to do this on ANY phone, not just my own. But whenever I test it on another Android phone, it simply opens the Google Play Store and requests download of Trigger.
I've read through this answer already, which explains the requirements for reading an NFC tag, but I'm hoping since airplane mode is a universal function there may be some way of communicating directly with the user's device OS, sidestepping the requirement for an app to translate the function.
Is it possible to create an NFC tag that just works universally on its own? Is there another NFC editing app I should be using instead of Trigger, or a setting I have to tweak?
Any help is greatly appreciated.
Upvotes: 0
Views: 1347
Reputation: 7653
There's a common data format called NDEF (NFC Data Exchange Format).
You could store in NDEF message: text, URI, specific application data, ... but not action for android phone as enable/disable GPS, airplane mode, ...
So users need a specific app on their phones to do these kind of action.
Upvotes: 1