2015-04-27 42 views
0

數據(有效載荷)。 觸發的唯一操作是ACTION_TAG_DISCOVERED我只能讀取tag_info。無法讀取非NDEF標籤

標籤的科技股是NfcBIsoDep

nfc_tech_filter.xml

<tech-list> 
    <tech>android.nfc.tech.NfcB</tech> 
    <tech>android.nfc.tech.IsoDep</tech> 
</tech-list> 

NfcReader/AndroidManifest.xml中

<intent-filter> 
      <action android:name="android.nfc.action.NDEF_DISCOVERED" /> 
      <action android:name="android.nfc.action.TECH_DISCOVERED" /> 
      <action android:name="android.nfc.action.TAG_DISCOVERED" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
</intent-filter> 

可以在請幫助我獲取數據嗎?

+0

你期望閱讀如果標籤不包含NDEF有效載荷?它是什麼類型的卡? –

+0

謝謝@MichaelRoland的關注,,, –

回答

0

這個插件只支持NDEF。 Android支持NfcB和IsoDep,所以可以擴展這個插件來做我所需要的。

由於Don ...

相關問題