I want to detect whether two SIM cards are there in my dual-SIM android phone programmatically. I found one API (TelephonyManager.getSIMState()
), but it is for normal single-SIM phones. Are there any APIs to detect whether or not two SIMs are inserted in my dual-SIM phone?
To see if the phone your using is dual-SIM, go into your phone's Settings app. Tap on Network and internet. The SIM cards option should be right below Airplane mode. If you see that the option shows you two slots for a SIM card, your phone is Dual-SIM.
They are both active only if you are not using them. If the SIM cards are both in Standby mode, you can make and receive calls on any of them. However, once you take a call on one SIM card, the other becomes inactive until the first card is no longer being used.
At the top of the SIM card manager screen, you can see the two SIM cards inside your smartphone and their status. Tap on either of them.
Android does not support multiple SIMs, at least from the SDK. Device manufacturers who have created multi-SIM devices are doing so on their own. You are welcome to contact your device manufacturer and see if they have an SDK add-on or something that allows you to access the second SIM.
Edit: (15th July, 2015)
Since API 22, you can check for multiple SIMs using SubscriptionManager
's method getActiveSubscriptionInfoList()
. More details on Android Docs.
From now, if the phone is MTK powered one, you can use TelephonyManagerEx class from MediaTek SDK.
Take a look at the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With