0

I searched a solution to handle the sending of big SMS on Android. The solution appears to be to use the following method:

ArrayList<String> parts =smsManager.divideMessage(sms_content);    
smsManager.sendMultipartTextMessage(recipient.contact_phone, null, parts, sentIntents, deliveryIntents);

If the received SMS message is correctly formated (only one big message), in my outbox I get multiple messages. Anyone has the clue of this?

Steeve
  • 1
  • 2

1 Answers1

0

If you look at the documentation for the method divideMessage, it explicitly says that it will divide the message into multiple parts, none bigger than the maximum message size.

http://developer.android.com/reference/android/telephony/SmsManager.html#divideMessage(java.lang.String)

Maximum SMS length is 160 characters. MMS (Multimedia Messaging Service) would be a better option if you want an unbroken text message. Checkout the SMSManager documentation, and the sendMultimediaMessage method in particular.

http://developer.android.com/reference/android/telephony/SmsManager.html

joshgoldeneagle
  • 4,616
  • 2
  • 23
  • 30
  • Yes true there is a limit of 160 characters (140 in some cases if I understood well depending on languages). The fact that the message is divided is not an issue but I would like it no "visible" from users. When I send a big SMS from the Android SMS client, I do not see my message divided in my outbox and the receipient only sees one big message – Steeve Dec 16 '15 at 18:02
  • Some messaging apps default to converting large SMS to MMS automatically, while other messaging apps default to dividing large SMS into separate SMS messages. Depends on the choice of the developer. – joshgoldeneagle Dec 16 '15 at 18:15