Android NFC start app (using AAR) and read text

2019-06-06 09:17发布

I have NFC tag with plain text and AAR. When I tap an NFC to the phone, my app will start. But It just call onCreate() method and don't read the plain text. I have to tap again and then app will read the text.

Can I somehow start app when I tap an NFC and at the sametime read the text?

I use this manual for implement NFC function.

1条回答
Anthone
2楼-- · 2019-06-06 09:39

To make sure that you also receive the NDEF message, make sure that you have added an Intent filter for the type of message that is on the tag.

查看更多
登录 后发表回答