1

I'm looking at replacing the default Android text messing app with my own, but I don't exactly know how to send SMS and MMS text messages. I would like to at least get it so that I can send SMS first, since I would assume that sending MMS would be much more difficult.

So, what exactly should be done when sending messages of these types? Any code examples that would be easy enough to understand?

Thanks!

Chiggins
  • 8,197
  • 22
  • 56
  • 81
  • Have a look at http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android/2973016#2973016 – Asahi Mar 06 '12 at 13:25

2 Answers2

2

Check the android-smspopup source code.

Macarse
  • 91,829
  • 44
  • 175
  • 230
0

So, what exactly should be done when sending messages of these types? Any code examples that would be easy enough to understand?

Use SmsManager. Here is a sample project showing the basics of sending an SMS, either through the default client or by using SmsManager. I do not believe there is a public API to send MMS, though.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Even though there is no public API to send MMS, there are third party texting apps which do so. How are they able to send MMS? – Etienne Lawlor Mar 07 '13 at 08:42