Nickelgrass Active Member Licensed User Longtime User May 19, 2015 #1 Hello, I am trying to read a NFC card. So far I figured out that I need this permission: Code: ' 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. Code: 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!
Hello, I am trying to read a NFC card. So far I figured out that I need this permission: Code: ' 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. Code: 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!
Erel B4X founder Staff member Licensed User Longtime User May 19, 2015 #2 Are you reading a NDEF tag? Otherwise it will not work with the NFC library. Upvote 0
Nickelgrass Active Member Licensed User Longtime User May 19, 2015 #3 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? Upvote 0
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?
Erel B4X founder Staff member Licensed User Longtime User May 19, 2015 #4 NFC library only works with NDEF tags. Upvote 0
Nickelgrass Active Member Licensed User Longtime User May 20, 2015 #5 Is there no way to read binary data? Perhaps with a java library? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 21, 2015 #6 You can use base 64 encoding to store binary data. Upvote 0
Nickelgrass Active Member Licensed User Longtime User May 22, 2015 #7 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. Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User May 22, 2015 #8 You can see the Java API here: https://developer.android.com/guide/topics/connectivity/nfc/index.html It does support other protocols. Note that there is additional library that you should check: https://www.b4x.com/android/forum/threads/mifare-ultralight-nfc-library.43212/#content Upvote 0
You can see the Java API here: https://developer.android.com/guide/topics/connectivity/nfc/index.html It does support other protocols. Note that there is additional library that you should check: https://www.b4x.com/android/forum/threads/mifare-ultralight-nfc-library.43212/#content