Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550
My Carrier: Vodaphone

How to get SIM serial number?

Hi all,

I want to know how to get serial number of SIM (GSM and CDMA both)?

 

Thanks. 

Please use plain text.
Super Contributor
habbitzz
Posts: 383
Registered: ‎02-15-2012
My Device: Bold 9900
My Carrier: N NetCom

Re: How to get SIM serial number?

Settings - Device - "Advanced System Settings" (i use another lang. than english, but its the one on the bottom in the device screen) - SIM-card

 

Here you should see it!

Please use plain text.
Developer
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550
My Carrier: Vodaphone

Re: How to get SIM serial number?

Thanks, I am also looking for how to get it programmatically.
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: How to get SIM serial number?

[ Edited ]

Hi,

For CDMA : 

net.rim.device.api.system.CDMAInfo#getIMSI()


For GSM: 

net.rim.device.api.system.GPRSInfo#getIMEI()

As these both functions will return byte [], you will need to convert it in String or anything you want..
Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
Developer
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550
My Carrier: Vodaphone

Re: How to get SIM serial number?

getIMSI() is different api used to get subscriber identifier. I am looking serial number of SIM. In JDE 7.1.0, they have added a method public static byte[] getICCID(), which does the task. But is there something available in OS v5.0 or 6.0?
Please use plain text.