微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 双拨号键对应SIM卡拨打电话的实现

双拨号键对应SIM卡拨打电话的实现

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
拨号界面使用双卡拨号,不要拨号选择框,直接点击卡一卡二各自button 拨出去电话
[SOLUTION]
UI界面:
请客户自行客制化卡1卡2的button图片,并修改拨号盘布局文件。
代码部分:
修改拨打电话的intent,在intent中指定slot id,即可直接用卡一或卡二直接拨出。
for example:
import com.android.phone.Constants;
Intent intent = new Intent(Intent.ACTION_CALL);
intent.putExtra(Constants.EXTRA_SLOT_ID, slot);//slot值为0或1,分别代表卡1,卡2
...

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top