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: 70
Registered: ‎04-06-2009
My Device: Not Specified

geeting imsi or phone number

1) It is my application's requirement to get IMSI or Phone Number of all devices so can some one tell me how can i do it ?

 

2) how can i create system module ? so it runs in background and how can i start my application in back ground when phone start.   

 

 

 

 

 

hope some quick reply.     

 

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: geeting imsi or phone number

[ Edited ]

 

To your question #2:

 

In JDE open project properties, open the second tab and check the checkboxes:

 

"System module"

 

"Auto Run On Startup"

 

check the image below:


 

ProjectSettingsAutoStartup.png

 


Message Edited by tbilisoft on 19-06-2009 07:01 AM
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: geeting imsi or phone number

To your question #1:

 

Check class: net.rim.device.api.system.SIMCardInfo

 

there is method to get IMSI

 

public static byte[] getIMSI() throws SIMCardException

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

Re: geeting imsi or phone number

It seems that I get the SIMCardException if I call the getIMSI() during start-up but it works fine if I call it later. Could this be the initialization issue?