0 Replies Latest reply: Apr 13, 2012 6:19 AM by 907439 RSS

    EnvelopHadler getSecuredDataLength on the gemalto card

    907439
      I wrote a small applet for testing sms_pp_formatted event. I created it with package import sim.toolkit.*; without any uicc packages. So the code looks like this:
      case EVENT_FORMATTED_SMS_PP_ENV:
                     short secureDataOffset = envHdlr.getSecuredDataOffset();
                     short secureDataLength = envHdlr.getSecuredDataLength();
                     envHdlr.copyValue(secureDataOffset, buff, (short)0, secureDataLength);
                     displayText(buff,secureDataLength, DCS_DEFAULT_ALPHABET, proHdlr);
                     break;

      Applet receives sms_pp and displays received bytes. So this code works perfect on the Oberthure Card, G&D but doesn't work on the Gemalto GML256v12 3G. All sim cards are usim, jc222. What is wrong? Maybe should I use the uicc package to handle envelop?