如何将短信发送到4到5位数?

时间:2015-03-12 06:18:33

标签: android sms

在我的一个应用程序中,我需要将SMS发送到3 ####和4 ######等数字。

为此我写了这样的代码,但我没有收到短信

try {
                    SmsManager smsManager = SmsManager.getDefault();
                    smsManager.sendTextMessage("4######", null, "SMS DATA", null,
                            null);
                } catch (Exception e) {
                    Toast.makeText(getApplicationContext(),
                    "SMS faild, please try again later!",
                    Toast.LENGTH_LONG).show();
                    e.printStackTrace();
                }

我无法找到问题。

0 个答案:

没有答案