发送超长短信的消息 [英] Sending long sms messages

查看:193
本文介绍了发送超长短信的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,允许用户发送短信。伟大的作品,当消息< 160个字符。在此之后,工作的事情不太完美。好像有几个选择这里:

I've got an app that lets users send sms messages. Works great when the message < 160 characters. After that, things work less-perfectly. Seems like there are a few options here:

  1. 在手动向上突破的消息到多个短信,发送的每个部分作为单独的短信。
  2. 使用多部分的发送短信功能(sendMultipartTextMessage())。
  3. 将消息作为彩信(sendDataMessage()?)。

下面是我的新手拿就可以了:

Here's my novice take on it:

1) 跨运营商最充分的支持。用户可能会很生气,你只是成本,而不是转换为彩信或他们的东西N个独立的消息,虽然,。

1) most well supported across carriers. Users may get mad that you just cost them N separate messages though, instead of converting to MMS or something.

2) 不知道这是由不同的运营商的支持,并阅读,一旦该消息是大于3 * 160个字符的长度,被转换为彩信反正不同的短信应用程序 - 也许远离这个完全

2) not sure if this is supported by different carriers, and read that once the message is greater than 3 * 160 chars in length, gets converted to MMS anyway by different SMS apps - maybe stay away from this altogether.

3) 不知道如何做到这一点,而旧手机可能不支持彩信。要使用Android SDK中发送彩信,我们只使用SmsManager.sendDataMessage()方法?

3) not sure how to do this, and older phones might not support MMS. To send an MMS using the android SDK, do we just use the SmsManager.sendDataMessage() method?

感谢

推荐答案

在我看来,第一个选项是大多数手机做默认。设计短信只能发送一定量的字符(160 probbaly)的,只是告知用户该邮件是太大了,如果他还想要送出(通知还多少短信将全部是)。

seems to me that the first option is what most mobile phones do by default. sms messages by design can only send a certain amount of characters (160 probbaly), just inform the user that the message is too big and if he still wants to send it anyway (informing also how many sms would the total be).

作为彩信和多像你说的不是每个运营商支持它,所以他们不似乎是最好的选择。

as for MMS and multipart as you said not every carrier supports it, so they dont seem to be the best option.

编辑:至于如何MMS上Android的SDK工作检查此线程指出:<一href="http://stackoverflow.com/questions/1914456/android-sdk-mms">http://stackoverflow.com/questions/1914456/android-sdk-mms

as for how does MMS work on android-sdk check this thread out: http://stackoverflow.com/questions/1914456/android-sdk-mms

这篇关于发送超长短信的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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