How to monitor sim card is changed?


Last Updated:

  1. pramod.deore

    pramod.deore Member This Topic's Starter

    Joined:
    Jan 10, 2010
    Messages:
    22
    Likes Received:
    0
    Hi,i want to monitor sim card ,when sim card is change(another card is used),my phone will send a sms!
    Thanks
     

    Advertisement
  2. pramod.deore

    pramod.deore Member This Topic's Starter

    Joined:
    Jan 10, 2010
    Messages:
    22
    Likes Received:
    0
    I have used following code to check IMSI number

    TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(Context.​
    TELEPHONY_SERVICE);

    String imsi = mTelephonyMgr.getSubscriberId();

    but I don't understand how to compare the 2 imsi number?
     
  3. pramod.deore

    pramod.deore Member This Topic's Starter

    Joined:
    Jan 10, 2010
    Messages:
    22
    Likes Received:
    0
    Anybody please help me writing this application.
    Actually I am writing one application using that the application is runs when power is on and check for the IMSI number. If we have changed the sim card then imsi number is also get changed, then one sms is send from that new sim card to one number.

    Actually I write application that runs on every boot, I know how to send the sms, how to calculate IMSI number.

    But I don't know how to compare the IMSI number,i.e how and where to store IMSI number the one which is exist at the time of application installed.
     

Share This Page

Loading...