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
Contributor
spbi_actin
Posts: 16
Registered: ‎03-10-2010
My Device: Blackberry 8350i
My Carrier: Nextel

Troubles with getIMSI

Hello!

 

I have had troubles using the SIMCardInfo.getIMSI(). I have the following code:

 

 

 

byte[] byteImsi = null;
        try
        {
            byteImsi = SIMCardInfo.getIMSI();
        }
        catch(ControlledAccessException imsiError)
        {
            this.strMensaje = "MonitorCL->MonitorCL()->El error al obtener IMSI es: " + imsiError + "\n Y el key es: " + imsiError.getCodeSigningKey().getDescription();
            this.muestraMensaje();
        }
        catch(SIMCardException imsiError2)
        {
            this.strMensaje = "MonitorCL->MonitorCL()->El error al obtener IMSI es: " + imsiError2;
            this.muestraMensaje();
        }
        this.setStrIMSI("" + this.getIMSIasDecimal(byteImsi));

 

 

The problem is that in the emulator it works fine, but if I install it on the 8350i it throws an exception.

 

Uncaught exception: 334010006346372

 

Like additional information, I already signed the application.

 

 

Please help me! Thanks!

Please use plain text.