×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    1

    recordDetected with Mifare Ultralight

    What I want to do is:
    When MIDlet is running and tag is read, get the UID of the tag => This part is OK, no problem there
    When MIDlet is not running and tag is read, launch the MIDlet and get the UID of that tag.
    I succeed to auto-launch the MIDlet with Push entry in jad file (MIDlet-Push-1: nfc:undefined_format,Panther,*), but not getting UID of that tag (the one that launches the MIDlet). I have implemented “RecordListerner” with:
    dm = DiscoveryManager.getInstance();
    startType = dm.getProperty("LaunchType");

    try {
    dm.addTargetListener(this, TargetType.RFID_TAG);
    //dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.NFC_FORUM_RTD, "urn:nfc:wkt:RFID_TAG"));
    //dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.URI,"nfc:rf;type=simpletag;uid=*"));
    dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.URI,"nfc:ndef;type=simpletag;uid=*"));

    and then public void recordDetected(NDEFMessage ndefMessage) but non of them never seems to go to recordDetected.
    I’m using only Mifare Ultralight (MF0U1) tags

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    30

    Re: recordDetected with Mifare Ultralight

    Hello,

    I noticed that this was posted quite long time ago, but did you find any solution to do this petteriko1 (other than writing the uid to payload)?

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: recordDetected with Mifare Ultralight

    Quote Originally Posted by petteriko1 View Post
    What I want to do is:
    When MIDlet is running and tag is read, get the UID of the tag => This part is OK, no problem there
    When MIDlet is not running and tag is read, launch the MIDlet and get the UID of that tag.
    I succeed to auto-launch the MIDlet with Push entry in jad file (MIDlet-Push-1: nfc:undefined_format,Panther,*), but not getting UID of that tag (the one that launches the MIDlet). I have implemented “RecordListerner” with:
    dm = DiscoveryManager.getInstance();
    startType = dm.getProperty("LaunchType");

    try {
    dm.addTargetListener(this, TargetType.RFID_TAG);
    //dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.NFC_FORUM_RTD, "urn:nfc:wkt:RFID_TAG"));
    //dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.URI,"nfc:rf;type=simpletag;uid=*"));
    dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.URI,"nfc:ndef;type=simpletag;uid=*"));

    and then public void recordDetected(NDEFMessage ndefMessage) but non of them never seems to go to recordDetected.
    I’m using only Mifare Ultralight (MF0U1) tags
    Take a look at This Article. It should help. Let us know yet if you can not solve your problem.

Similar Threads

  1. Some doubts about 6131 emulator and internal mifare 4k
    By o.ocariz in forum Near Field Communication
    Replies: 3
    Last Post: 2007-10-15, 17:40
  2. Internal Mifare access from internal secure card
    By super_beda in forum Near Field Communication
    Replies: 4
    Last Post: 2007-09-17, 10:55
  3. Internal Mifare card 6131
    By tdelazzari in forum Near Field Communication
    Replies: 4
    Last Post: 2007-08-23, 15:24
  4. Multiple mifare card emulation?
    By waaij in forum Near Field Communication
    Replies: 0
    Last Post: 2007-07-25, 10:56
  5. Where to buy MiFare Tags (NFC/RFID)
    By mobilenokia1 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-02-24, 16:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •