我正在开发一个应用程序,需要自动发送信息的硬件按钮按下。它在单个SIM手机上运行得很好,但在双SIM中却不是很好。那么,在使用双SIM手机时,是否有任何方法可以在发送消息或以编程方式进行语音呼叫时设置默认的SIM?
发布于 2015-05-23 05:05:55
ContentValues val = new ContentValues();
val.put("value", "here goes the preferred SIM ID");
getContentResolver().update(Uri.parse("content://settings/system"), val, "name='sms_sim_setting'", null);这部分代码运行良好,因为me.This可以扩展到其他SIM选择场景。设置缓存包含名称S、voice_call_sim_setting、gprs_connection_sim_setting、video_call_sim_setting etc.But的条目,它需要用户编写设置的权限。-雅纳卡·班达拉
https://stackoverflow.com/questions/30379442
复制相似问题