October 2018
Intermediate to advanced
464 pages
15h 17m
English
The code for sending an SMS is only two lines, as shown here:
SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(phoneNumber, null, msg, null, null);
The sendTextMessage() method does the actual sending. Most of the code for this recipe is for checking and obtaining the required permissions.