如何在Android的双SIM卡发送短信设置默认的SIM卡? [英] How can send sms in android in dual SIM with set default sim?

查看:1934
本文介绍了如何在Android的双SIM卡发送短信设置默认的SIM卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Android中发送短信与双SIM卡,广播没有意图?如何检测双卡android系统中?用户想要选择SIM卡,发送短信广播。 Android中设置默认的SIM卡在Android的发送味精双卡。用户必须选择特定的SIM卡,发送短信。

How can send sms in android with dual sim for broadcast not intent?? How can detect dual sim in android? User wants to select sim for send sms broadcast. In android set the default sim for sending msg in dual sim in android. User have to select particular sim for sending sms.

推荐答案

如果shell命令服务列表'包含'电话的输出.registry2 ',那么手机有第二个SIM卡。如果包含' telephony.registry3 ',那么手机有三分之一的SIM卡等。

If the output of the shell command 'service list' contains 'telephony.registry2', then the phone has a second SIM card. If contains 'telephony.registry3', then phone has a third SIM card and so on.

您可以使用这个shell命令,向发送第一SIM卡:

You can use this shell command to send from the first SIM card:

service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText"

和从第二SIM卡

service call isms2 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText"

要求 android.permission.SEND_SMS

这篇关于如何在Android的双SIM卡发送短信设置默认的SIM卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆