BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Is there a way to detect a sim card change? (http://www.blackberryforums.com/developer-forum/193947-there-way-detect-sim-card-change.html)

skulli 06-17-2009 07:15 AM

Is there a way to detect a sim card change?
 
Hi all,

I am just wondering if there is any chance to detect a sim card change. Following use case:
- software is being installed
- software somehow saves an unique information about the sim card
- sim card changes
- software recognizes change

Any help would be appreciated.

Thanks a lot

hippocamp software 06-17-2009 09:53 AM

There are no listener events for this as it can only occur when the battery has been removed - you can use SIMCardInfo.getIMSI() to see if it's changed.

skulli 06-17-2009 10:52 AM

great. that is exactly what I was looking for.

bajabob 06-19-2009 12:37 AM

:) Unless you are leaving your app open, I would suggest keeping changes in a persistent memory file, so if the app is closed and re-opened you'll be able to keep detecting changes.


All times are GMT -5. The time now is 10:58 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.