Dual-SIM Change Default SIM card
Asked Answered
A

2

4

I'm trying to write a program that change default SIM card on my dual-sim android, what functions do I need for this?

Aesir answered 8/3, 2012 at 23:15 Comment(0)
S
5

The Android SDK has no support for manipulating multiple SIM cards. You will need to contact the manufacturer of your device and ask them if they have an SDK add-on or something that enables you to work with multiple SIM cards.

Springe answered 9/3, 2012 at 0:30 Comment(0)
M
1

If your phone is based on Mediatek, there is a way to do what you want to. Have no doubt about that.

Dual SIM Switch Widget (I've developed it) is able to control SIM states on most dual SIM devices with Mediatek's boards.

Take a look at this page: http://labs.mediatek.com/site/global/developer_tools/mediatek_android/api_references/mediatek-sdk3/reference/com/mediatek/telephony/TelephonyManagerEx.gsp

Magnetochemistry answered 23/9, 2014 at 10:25 Comment(3)
I've reviewed the page you suggested and it does not seem to provide any information on how to change state of the SIM cards. The TelephonyManagerEx class appears to have methods only for querying the state :(Paean
@DmytroL: You're right. It's just the beginning, an example that those things can be done. I'm successfully toggling data, cards and doing all I need in this app: play.google.com/store/apps/…Magnetochemistry
@NikolaTulimirovic,do you have any code sample to achieve toggling enable/disable data for simcard?Garvy

© 2022 - 2024 — McMap. All rights reserved.