• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to monitor sim card is changed?

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?
 
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.
 
Back
Top Bottom