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!
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!
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.
Browser other questions tagged android
You are not signed in. Login or sign up in order to post.
Interesting though, I’m working with version 4.0.3 of Android, ie from API 15. Anyway, thanks for the reply @Vitor Henrique.
– AnselmoGóis
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.
– Vitor Henrique
Thank you very much Vitor Henrique!
– AnselmoGóis
I hope it worked out, mark it as answered if it helped you, thank you!
– Vitor Henrique