Access the SIM Card with an Android Application?

You can get the IMEI like this (but is it what you want ?), just an exemple : mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId(); Likewise, you have String getSimCountryIso(): Returns the ISO country code equivalent for the SIM provider’s country code. String getSimOperator(): Returns the MCC+MNC (mobile country code + mobile network code) of … Read more

Option to send sms using Sim1 or Sim2 programmatically

You can use this code for API level 22+ (Android 5.0) LOLLIPOP_MR1. private void sendDirectSMS() { private static String SENT = “SMS_SENT”, DELIVERED = “SMS_DELIVERED”; PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, new Intent( SENT), 0); PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0, new Intent(DELIVERED), 0); // SEND BroadcastReceiver BroadcastReceiver sendSMS = new BroadcastReceiver() { @Override public void onReceive(Context … Read more

How to get current SIM card number in Android?

I think sim serial Number and sim number is unique. You can try this for get sim serial number and get sim number and Don’t forget to add permission in manifest file. TelephonyManager telemamanger = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String getSimSerialNumber = telemamanger.getSimSerialNumber(); String getSimNumber = telemamanger.getLine1Number(); And add below permission into your Androidmanifest.xml file. <uses-permission android:name=”android.permission.READ_PHONE_STATE”/> … Read more

Android dual SIM card API

You can use MultiSim library to get details from multi-sim devices. Available info from each sim card: IMEI, IMSI, SIM Serial Number, SIM State, SIM operator code, SIM operator name, SIM country iso, network operator code, network operator name, network operator iso, network type, roaming status. Just add the lines below in your app-level Gradle … Read more

MSISDN : Is it a SIM Card Data? Why all The Provided Function (from Blackberry and Android) to fetch MSISDN not reliable?

I have some insight into the matter for you. The MSISDN can be stored on the SIM card, however most network providers (all providers in South Africa) do not store the MSISDN on the SIM card. There are several reasons for this, the most notable being: Dynamic MSISDN allocation: Prepaid SIMs are sometime allocated an … Read more