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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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