Android Question NFC binary data

Nickelgrass

Active Member
Licensed User
Hello,
I am trying to read a NFC card.

So far I figured out that I need this permission:
B4X:
' NFC Permission
AddActivityText(activity, <intent-filter>
    <action android:name="android.nfc.action.TAG_DISCOVERED"/>
    <category android:name="android.intent.category.DEFAULT"/>
</intent-filter>)
But I did not figure out how to get the binary data. The NFC and NFCforeground Libraries did not supply any data in the result.
B4X:
Dim List_NdefRecords As List
        List_NdefRecords = nf.GetNdefRecords(Activity.GetStartingIntent)
          Log (List_NdefRecords)
It just gives an empty array. How can I get non ndef data?

Thanks!

Regards!
 

Nickelgrass

Active Member
Licensed User
No, I think its just binary data. I dont get an ndef event from the intent filter in the manifest if its set to ndef. How can I read the binary data?
 

Nickelgrass

Active Member
Licensed User
Reading binary data was in referance to NFC. Is there a way to read NFC binary data with Java? There are apps who can read all types of cards so I guess the hardware suports it.
 
Top