Smsmanager sending SMS

Asked

Viewed 139 times

0

I’m trying to send a text with the following code:

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

But nothing happens, it executes the code, no error occurs and do not send the SMS.
Thanks in advance !
Greetings,

1 answer

0


I was able to send it the following way:

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

Greetings

Browser other questions tagged

You are not signed in. Login or sign up in order to post.