Android Question NFC Reading Credit Card for Card Number and Expiry

Kevin Hartin

Active Member
Licensed User
Longtime User
I have got a simple app based on the NFCAdvanced example and it is reading the card and delivering information such as the rawId, etc.

Is there a reference or example as to how you get the card details?

Thanks, Kev
 

zed

Well-Known Member
Licensed User
The NFCAdvanced example provided with B4A shows how to read the raw ID (rawId) of an NFC card, but it cannot automatically extract additional "details"... because this depends entirely on the type of card and the protocol it uses.

There is no generic "get card details" function.
You must use the specific NFC technology that is detected.

Useful documentation (Android)

NFC technologies

https://developer.android.com/guide/topics/connectivity/nfc/tech-overview

Detailed APIs

NfcA : https://developer.android.com/reference/android/nfc/tech/NfcA
MifareClassic : https://developer.android.com/reference/android/nfc/tech/MifareClassic
IsoDep : https://developer.android.com/reference/android/nfc/tech/IsoDep
Ndef : https://developer.android.com/reference/android/nfc/tech/Ndef
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
Not supported but you can view this thread


Check with @Zeev Goldstein he used it and is a master of it.
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
 
Upvote 0
Top