短信管理器的双卡双待手机? [英] SMS Manager for Dual Sim Phones?

查看:172
本文介绍了短信管理器的双卡双待手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对正在使用的android.The codeI发送短信正在与SMS管理器如下:

I am working with SMS Manager for sending sms in android.The code i am using is as below:

private void sendSms(String Phnno, String Message) {
    if (Utils.checkSIM(MyActivity.this)) {
        SmsManager smsManager = SmsManager.getDefault();
        smsManager.sendTextMessage(Phnno, null, Message, null, null);
        Utils.showMessage(MyActivity.this,"","Thank You for your interest,please check your inbox for the results.");

    } else {
        showErrorMessage(MyActivity.this, "SIM Error!",
                "Please insert SIM");
    }

}

这code对我的作品完全可以在单卡手机,但是当我检查这个双卡手机我得到以下警告和短信从来不发送。

This code works for me perfectly on single sim phones but when i check this in dual sim phones i am getting following warning and SMS never sends.

01-11 15:56:13.664: W/sendTextMessage(6656): use single sim interface to sendTextMessage by double sim interface

请建议我如何能实现它在我的双卡phone.Thanks提前。

Please suggest how i can achieve it on my dual sim phone.Thanks in Advance.

推荐答案

sendTextMessage() scAddress 参数。这是用来定义SMS中心地址。我认为,如果你正确设置它,你就可以发送信息。

sendTextMessage() has the scAddress parameter. This is used to define the SMS center address. I think if you set it correctly, you'll be able to send a message.

您可以按照本教程中找到的数量: 的http://algorithmic-indian.blogspot.hu/2011/03/how-to-change-message-center-number-in.html 你可以试试这个问题,以及<一个href="http://stackoverflow.com/questions/4446312/how-to-get-the-smsc-number-of-a-phone-in-android">how取得的android手机的SMSC多少?显然似乎没有成为一个以编程方式获取的数量。

You can find the number by following this tutorial: http://algorithmic-indian.blogspot.hu/2011/03/how-to-change-message-center-number-in.html You may try this as well how to get the smsc number of a phone in android? Apparently there doesn't seem to be a way to programmatically get the number.

这篇关于短信管理器的双卡双待手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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