B4A Library Mifare Ultralight NFC Library

This library implements the basic functionality exposed in Android for Mifare Ultralight.
See here: http://developer.android.com/reference/android/nfc/tech/MifareUltralight.html
It allows you to connect to it, read pages and write pages to it.

MUL
Author:
thedesolatesoul
Version: 1
  • MifareUltralight
    Methods:
    • Close As Boolean
    • Connect As Boolean
    • Initialize (in As Intent)
    • IsInitialized As Boolean
    • ReadPage (PageNum As Int) As Byte[]
    • WritePage (PageNum As Int, Data() As Byte)
    Permissions:
    • android.permission.NFC
  • MifareUltralightTester
    Methods:
    • isMifareUltralightIntent (in As Intent) As Boolean
 

Attachments

  • MUL.zip
    3.1 KB · Views: 1,030

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,
Will this allow you to turn your device into a NFC (Mifare) tag ?
 

thedesolatesoul

Expert
Licensed User
Longtime User
Big like!!!
Thank you

I dont know, but Mifare Ultralight does not use NDEF (I think). This library is reading/writing raw bytes.

Hi,
Will this allow you to turn your device into a NFC (Mifare) tag ?
I dont think so.

My knowledge of the different kinds of cards and tags is not so great.
 

bluedude

Well-Known Member
Licensed User
Longtime User
You can use NDEF on Mifare Ultralight, no problem. Most people use NDEF on all kinds of stickers. Only for special NFC solutions you would need to do raw reading or writing. Stuff like: public transport cards (encrypted)
 

Toley

Active Member
Licensed User
Longtime User
Any example how to use this library ? The Intent stuff is not really easy to understand.
 

joschi

Member
Licensed User
Longtime User
Hi!

Have someone an example? I need to read the UID from the TAG.

tehdesolatesoul: do you know is this with your LIB possible?

Thanks for help

Best regards
 

joschi

Member
Licensed User
Longtime User
I would like to read the unique ID of the TAG so I can identity the TAG
 
Top