我有一个2型标签,文字记录的类型=“T”和一些文字。
我试着标记这个,我的活动在活动选择器中显示。 我在清单文件中有这段代码
<activity android:name=".Layout1"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<data android:mimeType="mime/*" />
</intent-filter>
为什么我不能抓住标签?我不明白什么是type =“T”。谢谢你的帮助
答案 0 :(得分:0)
我刚开始使用android / NFC编程。在我的代码中,有alo:
<uses-permission android:name="android.permission.NFC" android:required="true">
</uses-permission>
<uses-sdk android:minSdkVersion="10" />
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
获取您的信息并希望它有所帮助。