Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use of EVENT_PROACTIVE_HANDLER_AVAILABLE?

955891Nov 12 2012
Hello,

does anybody any idea how to use the event EVENT_PROACTIVE_HANDLER_AVAILABLE?

Actually I found this page:
http://developer.gemalto.com/home/technology/nfc/nfc-applet-development/use-of-stk-for-contactless.html

It says:
*******************
Use of STK for Contactless

In an NFC contactless applet, only the process() method is used to deal with contactless data. In order to use the SIM Toolkit interface to interact with the user, the processTooolkit() method must be called because proactive commands can only be sent from this method.


The following method describes a way to achieve this:

1. Register to the EVENT_PROACTIVE_HANDLER_AVAILABLE event at the end of the process() method.
2. Catch the EVENT_PROACTIVE_HANDLER_AVAILABLE event in the processTooolkit() method and perform the proactive action there.
*******************

Btw, I'm not using Gemalto cards, but as I know from the vendor, my cards are also supporting this event.. Unfortunately, if I register this event using setEvent(EVENT_PROACTIVE_HANDLER_AVAILABLE); in the process() function, the Toolkit function processToolkit() are not called..

Does anyone experience, or have an idea about this problem?

What I want to do is: I have a NFC Toolkit applet, which works contactless, and want to send a sms and display text immediately if any contactless apdu processed in my applet..

Regards and thanks in advance..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2012
Added on Nov 12 2012
0 comments
519 views