I'm trying to write a program that change default SIM card on my dual-sim android, what functions do I need for this?
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.
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
来源:https://stackoverflow.com/questions/9626575/dual-sim-change-default-sim-card