JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

How to call call the process() method in another applet

JavaCard Applet Development Related Questions and Answers.
Rasiand
Posts: 12
Joined: Mon Mar 14, 2016 8:25 am
Points :133
Contact:

How to call call the process() method in another applet

Post by Rasiand » Mon Mar 14, 2016 8:38 am

Hello, I am newbie in java card field. I have tried to write an applet which need to call the process() method in another applet. How can I implement this? It would be better if you give me a sample code. Pls forgive me if my question is stupid.

gorgekin
Posts: 20
Joined: Sun Nov 29, 2015 4:38 am
Points :83
Contact:

Re: How to call call the process() method in another applet

Post by gorgekin » Sat Mar 19, 2016 2:22 am

See the sample code:
Target applet

Code: Select all

class TargetApplet {
  public static Applet INSTANCE;

  private TargetApplet() {
  }

  public static void install() {
    INSTANCE = new TargetApplet();
    INSTANCE.register();
  }
}


Client applet:

Code: Select all

TargetApplet.INSTANCE.process();

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 23 guests

JavaCard OS : Disclaimer