This is simple code send SMS.
47: SmsManager sms = SmsManager.getDefault();
48: sms.sendTextMessage(\"12345678901\", null, \"hello!\", null, null);
>
give the pending intent in your 48th line as given bellow
String sent = "android.telephony.SmsManager.STATUS_ON_ICC_SENT";
PendingIntent piSent = PendingIntent.getBroadcast(smsActivity.this, 0,new Intent(sent), 0);
sms.sendTextMessage("12345678901", null, "hello!", piSent, null);
am sure it works :)