简体   繁体   English

如何使用SmsManager发送英语以外的其他语言的SMS?

[英]How to send SMS in languages other than english using SmsManager?

I have tried to send Text Message using SmsManager in android. 我试图在Android中使用SmsManager发送Text Message Message is delivering fine. 信息传递良好。 When i tried to send message in different language it delivers as ?????? 当我尝试用其他语言发送消息时,它以??????传递 . I don't know what's the problem. 我不知道出什么问题了。

try {
                SmsManager smsManager = SmsManager.getDefault();
                String phno = "+919715361062";
                String msg = "டெஸ்டிங்";
                smsManager.sendTextMessage(phno, null, msg, null, null);
            }catch (Exception e){
                e.printStackTrace();
                Toast.makeText(MainActivity.this,"Failed",Toast.LENGTH_LONG).show();
            }

try this : 尝试这个 :

ArrayList<String> arrSMS = smsManager.divideMessage("Text to send");
smsManager.sendMultipartTextMessage("Number", null, arrSMS, null, null);

You have to use sendMultipartTextMessage(). 您必须使用sendMultipartTextMessage()。

Look at this question: Android: Unicode/Charset problems when sending an SMS (sendTextMessage) 看一下这个问题: Android:发送SMS(sendTextMessage)时出现Unicode /字符集问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM