Hello all,
I started using NFC tags for my application.
All the NFC tags I'm using have a text content, so no URI.
Since my phone may have more than a single application that handles NFCs, I'd like my own application to handle NFCs only if... let's say the text content starts with "ABCTag". How can I do this?
And also, my application has several activities. Let's say Activity1, Activity2, Activity3. What I'd really need is if the NFC tag text is "ABCTag1" then that should start Activity1, if "NFCTag2" then Activity2 and so on.
Any help on this please?
So far I've updated my manifest file and it reads all NFCs no matter what, but I'm still having problems with this kind of filtering.
Thank you!
Adrian
I started using NFC tags for my application.
All the NFC tags I'm using have a text content, so no URI.
Since my phone may have more than a single application that handles NFCs, I'd like my own application to handle NFCs only if... let's say the text content starts with "ABCTag". How can I do this?
And also, my application has several activities. Let's say Activity1, Activity2, Activity3. What I'd really need is if the NFC tag text is "ABCTag1" then that should start Activity1, if "NFCTag2" then Activity2 and so on.
Any help on this please?
So far I've updated my manifest file and it reads all NFCs no matter what, but I'm still having problems with this kind of filtering.
Thank you!
Adrian