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!

Read EF ICCID of SIM

843851Dec 7 2005 — edited Dec 19 2008
Dear all

How to read ICCID of sim in the file EF_ICCID? and copy that ICCID into buffer?
So i can use it for unique identification of subscriber.

Here sime Technical error occurs in this code.
//start code:

theGsmApplet = SIMSystem.getTheSIMView();
theGsmApplet.select((short)SIMView.FID_MF);
theGsmApplet.select((short)SIMView.FID_EF_ICCID);
// reads the record from EF ICCID
theGsmApplet.readBinary((short)0,(byte[])buffer1,(short)0,(short)10);
// put ICCID it in the exchange buffer
ph.initDisplayText((byte)0xD0, DCS_8_BIT_DATA ,buffer1, (short)0x0000, (short)0x0010);
//display contant of buffer
ph.send();


//end code
is there any other file which i can use as unique identity of subscriber?

Thank you in advance.
Regards
Divyesh.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2009
Added on Dec 7 2005
4 comments
1,950 views