BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   Is there a way to detect a sim card change? (

skulli 06-17-2009 06: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 08: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 09:52 AM

great. that is exactly what I was looking for.

bajabob 06-18-2009 11:37 PM

:) 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 05:02 AM.

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