I am developing an application which will send sms directly from my application, here is the code iam using to send and sms, if i replace finalmessage with some character like "hello" it work fine.. but if i use finalmessage it will simply force close.. and one more thing finalmessage contains around 500 character. So i still dont understand what is the problem and why it getting force close.
SmsManager sm = SmsManager.getDefault();
PendingIntent sent = PendingIntent.getBroadcast(this, 0, new Intent(), 0);
PendingIntent delivered = PendingIntent.getBroadcast(this, 0, new Intent(), 0);
sm.sendTextMessage(stringnumber, null,finalmessage, sent, delivered);