Source:
<code>public void sendSms(String sendTo, String msg, String uuid) { ArrayList<PendingIntent> sentIntents = new ArrayList<PendingIntent>(); ArrayList<PendingIntent> deliveryIntents = new ArrayList<PendingIntent>(); Logger.log(CLASS_TAG, "sendSms(): Sends SMS to a number: sendTo: " + sendTo + " message: " + msg); Util.logActivities(context, context.getString(R.string.sent_msg, msg, sendTo)); SmsManager sms = SmsManager.getDefault(); ArrayList<String> parts = sms.divideMessage(msg); String validUUID; if (null == uuid || "".equals(uuid)) { validUUID = getUuid(); } else { validUUID = uuid; } final Long timeMills = System.currentTimeMillis(); Message message = new Message(); message.setBody(msg); message.setTimestamp(timeMills.toString()); message.setFrom(sendTo); message.setUuid(validUUID); for (int i = 0; i < parts.size(); i++) { Intent sentMessageIntent = new Intent(ServicesConstants.SENT); sentMessageIntent.putExtra(ServicesConstants.SENT_SMS_BUNDLE, message); PendingIntent sentIntent = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), sentMessageIntent, PendingIntent.FLAG_UPDATE_CURRENT); Intent delivered = new Intent(ServicesConstants.DELIVERED); delivered.putExtra(ServicesConstants.DELIVERED_SMS_BUNDLE, message); PendingIntent deliveryIntent = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), delivered, PendingIntent.FLAG_UPDATE_CURRENT); sentIntents.add(sentIntent); deliveryIntents.add(deliveryIntent); } if (PhoneNumberUtils.isGlobalPhoneNumber(sendTo)) { sms.sendMultipartTextMessage(sendTo, null, parts, sentIntents, deliveryIntents); <START> <END> postToSentBox(message, UNCONFIRMED); } else { final String errNotGlobalPhoneNumber = "sendSms(): !PhoneNumberUtils.isGlobalPhoneNumber: " + sendTo; Logger.log(CLASS_TAG, errNotGlobalPhoneNumber); if (Prefs.enableLog) { new LogUtil(DateFormat.getDateFormatOrder(context)).appendAndClose(message); } Toast.makeText(context, message, Toast.LENGTH_LONG).show(); } }</code><technical_language>right. I paying attention</technical_language>

Target:
public void sendSms(String sendTo, String msg, String uuid) { ArrayList<PendingIntent> sentIntents = new ArrayList<PendingIntent>(); ArrayList<PendingIntent> deliveryIntents = new ArrayList<PendingIntent>(); Logger.log(CLASS_TAG, "sendSms(): Sends SMS to a number: sendTo: " + sendTo + " message: " + msg); Util.logActivities(context, context.getString(R.string.sent_msg, msg, sendTo)); SmsManager sms = SmsManager.getDefault(); ArrayList<String> parts = sms.divideMessage(msg); String validUUID; if (null == uuid || "".equals(uuid)) { validUUID = getUuid(); } else { validUUID = uuid; } final Long timeMills = System.currentTimeMillis(); Message message = new Message(); message.setBody(msg); message.setTimestamp(timeMills.toString()); message.setFrom(sendTo); message.setUuid(validUUID); for (int i = 0; i < parts.size(); i++) { Intent sentMessageIntent = new Intent(ServicesConstants.SENT); sentMessageIntent.putExtra(ServicesConstants.SENT_SMS_BUNDLE, message); PendingIntent sentIntent = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), sentMessageIntent, PendingIntent.FLAG_UPDATE_CURRENT); Intent delivered = new Intent(ServicesConstants.DELIVERED); delivered.putExtra(ServicesConstants.DELIVERED_SMS_BUNDLE, message); PendingIntent deliveryIntent = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), delivered, PendingIntent.FLAG_UPDATE_CURRENT); sentIntents.add(sentIntent); deliveryIntents.add(deliveryIntent); } if (PhoneNumberUtils.isGlobalPhoneNumber(sendTo)) { sms.sendMultipartTextMessage(sendTo, null, parts, sentIntents, deliveryIntents); postToSentBox(message, UNCONFIRMED); } else { final String errNotGlobalPhoneNumber = "sendSms(): !PhoneNumberUtils.isGlobalPhoneNumber: " + sendTo; Logger.log(CLASS_TAG, errNotGlobalPhoneNumber); if (Prefs.enableLog) { new LogUtil(DateFormat.getDateFormatOrder(context)).appendAndClose(errNotGlobalPhoneNumber); } Toast.makeText(context, errNotGlobalPhoneNumber, Toast.LENGTH_LONG).show(); } }