Send SMS with accents [duplicate]

笑着哭i 提交于 2019-12-12 06:17:59

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!