1

can we receive notification on phone SIM change.

Ajay Singh
  • 1,611
  • 3
  • 22
  • 29

1 Answers1

1

i think we can get the phone number.. so we can track the change of phone number on SIM change in background process.

 TelephonyManager tMgr=(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
mPhoneNumber = tMgr.getLine1Number();
Jana
  • 2,890
  • 5
  • 35
  • 45
  • 4
    Good approach. But issue is that MSISDN (number) is not mandatory to be present on the SIM, so you cannot accurately track the change. So, it is better to monitor IMSI change. See more details: http://stackoverflow.com/questions/4967459/get-mobile-no-from-real-device/4967549#4967549 – Zelimir Apr 05 '11 at 09:15