NFC的Andr​​oid应用程序启动(使用AAR)和阅读文本 [英] Android NFC start app (using AAR) and read text

查看:187
本文介绍了NFC的Andr​​oid应用程序启动(使用AAR)和阅读文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有纯文本和AAR NFC标签。当我点击一个NFC的手机,我的应用程序将启动。但它只是叫的onCreate()方法和不读的纯文本。我不得不再次点击,然后应用程序将读取的文本。

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.

我可以以某种方式启动的应用程序,当我点击一个NFC和在Sametime读课文?

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

我用这个手动以实现NFC功能。

I use this manual for implement NFC function.

推荐答案

要确保你还会收到NDEF消息,请确保您所添加的意图过滤器的消息是标签上的类型。

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.

这篇关于NFC的Andr​​oid应用程序启动(使用AAR)和阅读文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆