1

I have tried to send Text Message using SmsManager in android. 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();
            }
Praveen Kumar
  • 547
  • 1
  • 7
  • 33

2 Answers2

6

try this :

ArrayList<String> arrSMS = smsManager.divideMessage("Text to send");
smsManager.sendMultipartTextMessage("Number", null, arrSMS, null, null);
H.Gheisari
  • 250
  • 1
  • 15
0

You have to use sendMultipartTextMessage().

Look at this question: Android: Unicode/Charset problems when sending an SMS (sendTextMessage)

Community
  • 1
  • 1