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
Posts: 115
Registered: ‎10-04-2008
My Device: Not Specified

Fetch IMSI or detect SIM change?

Hi,

 

I want to fetch the IMSI number and detect whether the SIM card has changed or not. Is it actually possible? Can we get the IMSI number and store it and check whenever SIM changes.

 

Hope to get a quick reply.

 

 

Regards
Sunil
Developer
Posts: 146
Registered: ‎11-05-2008
My Device: Not Specified

Re: Fetch IMSI or detect SIM change?

just use (GPRSInfo.imeiToString(SIMCardInfo.getIMSI())) .

 

if no simcard ,it will give exception!!

Regular Contributor
Posts: 67
Registered: ‎09-30-2009
My Device: Not Specified

Re: Fetch IMSI or detect SIM change?

In my case it also gives a SIMCardException if it is called on auto-startup. If I call it later - it works fine.

Any suggestions?

Contributor
Posts: 12
Registered: ‎08-16-2011
My Device: 9300
My Carrier: Telcel

Re: Fetch IMSI or detect SIM change?

try using a task timmer or something like that