Know how many chips an Android device has

0

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!

    
asked by anonymous 29.02.2016 / 12:21

1 answer

0

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 .

    
29.02.2016 / 12:36