mms/res/values/config.xml
<!-- configuration for max sms to mms text size -->
<integer name="config_max_smstomms">10</integer>
mms/res/xml/mms_config.xml
<!-- If true, The text message over 160 characters will be sent in multi part.
If false, The text message over 160 characters will be sent
via multi media message. -->
<bool name="enableMultipartSMS">true</bool>
<!-- If enableMultipartSMS is true and smsToMmsTextThreshold > 1, then multi-part SMS messages
will be converted into a single mms message. For example, if the mms_config.xml file
specifies <int name="smsToMmsTextThreshold">7</int>, then on the 8th sms segment, the
message will be converted to an mms. -->
<int name="smsToMmsTextThreshold">-1</int>
packages/apps/Mms/src/com/android/mms/ui/
ComposeMessageActivity.java
updateCounter(){
int[] params = SmsMessage.calculateLength(text, false);
Log.d("xxxx","calculateLength:params[0]="+params[0]+" ,params[1]="+params[1]+" ,params[2]="+params[2]+" ,params[3]="+params[3]);
/* SmsMessage.calculateLength returns an int[4] with:
* int[0] being the number of SMS's required,
&