SmsManager sending SMS

0

I'm trying to send an SMS with the following code:

final SmsManager smsManager = SmsManager.getDefault(); 
    smsManager.sendTextMessage("phone", null, "Message", null, null);

But nothing happens, it runs the code, there is no error and it does not send SMS. Home Thank you very much in advance ! Home Greetings,

    
asked by anonymous 14.07.2015 / 14:47

1 answer

0

I was able to send as follows:

 smsManager.sendMultipartTextMessage(phone, null ,smsManager.divideMessage(textmessage), null, null);

Greetings

    
14.07.2015 / 14:57