With help from a few SO posts, I can successfully send multipart messages. However, I'm not finding anything about how to attach an image.
The crux of my code is:
SmsManager sms = SmsManager.getDefault();
ArrayList<String> parts = sms.divideMessage (message);
sms.sendMultipartTextMessage (phoneNumber, null, parts, sentIntents, null);
where message
is a String
. Note that I'm also using sentIntents
and aBroadcastReceiver
to get confirmations that each part is sent. I'm leaving that code out to keep this short.
What do I need to add for attaching an image?