Know how many chips an Android device has

Asked

Viewed 35 times

0

I need to know if an Android device has a chip (SIM card) or not. And if you do, I need to know if you only have one or more.

Thank you very much to everyone who tries to help me.

I’ve researched that question but I can’t get any answers!

1 answer

0

Since API 22 you can use the function getActiveSubscriptionInfoList ().

It returns a list of type SubscriptionInfo of all Sims inserted into the device. Check the documentation.

  • Interesting though, I’m working with version 4.0.3 of Android, ie from API 15. Anyway, thanks for the reply @Vitor Henrique.

  • Until API 22 Android did not support multiple Sims, you can test the implementations contained in http://stackoverflow.com/questions/14517338/android-check-whether-the-phone-is-dual-sim but there is no guarantee that they will work.

  • Thank you very much Vitor Henrique!

  • I hope it worked out, mark it as answered if it helped you, thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.