BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-17-2009, 06:15 AM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Model: 9000
PIN: N/A
Carrier: Blau
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Is there a way to detect a sim card change?

Please Login to Remove!

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
Offline  
Old 06-17-2009, 08:53 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 06-17-2009, 09:52 AM   #3 (permalink)
New Member
 
Join Date: Jun 2009
Model: 9000
PIN: N/A
Carrier: Blau
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

great. that is exactly what I was looking for.
Offline  
Old 06-18-2009, 11:37 PM   #4 (permalink)
New Member
 
Join Date: Jan 2008
Model: 9530
PIN: N/A
Carrier: Verizon
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
My Dev Site: Roboconn.com Get my new OTA apps and games, some free -some not. BB friendly.
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.