问题
I send SMS with this code
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("Numerber", null, "Text to send", null, null);
It works pretty well in English, but if I use Spanish it fails. After many tries I found out that the message sent got cropped if the "Text to send" contains accents like "á, é, í, ó, ú"
Of course those accents are needed in Spanish in a proper way of writing, so any idea about this?
回答1:
Thanks to all of you. Yes, it is what you said. Here is the solution:
ArrayList<String> arrSMS = smsManager.divideMessage("Text to send");
smsManager.sendMultipartTextMessage("Number", null, arrSMS, null, null);
来源:https://stackoverflow.com/questions/14943491/send-sms-with-accents