×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    31

    6131 NFC: notify midlet after javacard access

    Hi,

    I have a wallet on the javacard of my 6131 NFC. A J2ME midlet reads the balance and displays it. You can also access the javacard-wallet from a desktop reader und decrement/increment the balance.

    Is it possible to notify the running J2ME midlet if the desktop reader changes the credit on the javacard?

    Regards
    Andi

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: 6131 NFC: notify midlet after javacard access

    Use the DiscoveryManager.addTransactionListener() method to receive
    TransactionListener.externalReaderDetected() notifications.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    31

    Re: 6131 NFC: notify midlet after javacard access

    OK, that's possible. But how do i know that the data has changed? It can be immediately after detecting a reader or a few seconds later. Is there any other change to get an event?

    Regards
    Andi

  4. #4
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: 6131 NFC: notify midlet after javacard access

    I don't think there is a way to know if something changed.
    It's just possible that something has happened when you get the event.
    Below is the part of the javadoc that explains the same thing.

    --clip--
    void externalReaderDetected(byte slot)

    Called by the platform, when a card emulation event has happened on the RFID hardware. This notification informs the application, that there might be changes in the data on the secure element.

    If the application displays for example the number of metro tickets left in the device, after receiving this notification the application can update the number of available tickets shown on the screen. How the number of tickets is acquired from the secure element is out of scope for this specification.
    --clap--

  5. #5
    Registered User
    Join Date
    May 2007
    Posts
    31

    Re: 6131 NFC: notify midlet after javacard access

    Thank you for the information! I try to use the readerDetected event in my midlet.

    Regards
    Andi

  6. #6
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    52

    Re: 6131 NFC: notify midlet after javacard access

    Quote Originally Posted by cde View Post
    Hi,

    I have a wallet on the javacard of my 6131 NFC. A J2ME midlet reads the balance and displays it. You can also access the javacard-wallet from a desktop reader und decrement/increment the balance.
    How do you read it from the Desktop? What kind of connection are you using to read from the mobile card?

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    182

    Re: 6131 NFC: notify midlet after javacard access

    hi jlanza,

    you can read the cardlet info from the desktop reader using JCOP offcard API.

    please go thru the following link.

    http://forum.java.sun.com/thread.jsp...hreadID=702955

    it is not the proper program to do ur purpose. but you can go thru the JCOP Offcard documentation for further help.

    Sunil

Similar Threads

  1. Nokia 6131 NFC (JSR 257) reader phone communication
    By Alex_Polt in forum Near Field Communication
    Replies: 17
    Last Post: 2009-11-25, 13:14
  2. Nokia 6131 NFC (JSR 257) reader phone communication
    By Alex_Polt in forum Mobile Java General
    Replies: 2
    Last Post: 2008-12-04, 03:03
  3. Nokia 6131 NFC SDK 1.0 has been released
    By Nokia Ron in forum Near Field Communication
    Replies: 0
    Last Post: 2007-03-26, 22:28
  4. Nokia 6131 NFC - When?
    By no_username_left in forum News, Announcements and Job Listings
    Replies: 9
    Last Post: 2007-02-08, 11:29
  5. Turn web access on for midlet on 6310i
    By gwhistance in forum Mobile Java General
    Replies: 1
    Last Post: 2002-12-20, 20:24

Posting Permissions

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