I need to know if an Android device has a SIM card or not. And if you have, I need to know if you have only one or more than 1.
Many thanks to all who try to help me.
I already researched this doubt but I could not answer!
I need to know if an Android device has a SIM card or not. And if you have, I need to know if you have only one or more than 1.
Many thanks to all who try to help me.
I already researched this doubt but I could not answer!
Since API 22 you can use the getActiveSubscriptionInfoList ()
function.
It returns a list of type SubscriptionInfo
of all SIMs inserted in the device. Check documentation .