I am working on an Android auto-start app that\'s basically dependent on SIM card state. When my app auto starts I need it to check where the SIM card has been changed or n
Below code will help you to fetch the SIM Serial No
TelephonyManager mTelephonyMgr =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
String sSimSerial = mTelephonyMgr.getSimSerialNumber();
Set the following permission on Android Manifest file
android.permission.READ_PHONE_STATE