tags:

views:

124

answers:

3

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!

A: 

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
A: 

Here is a code sample that sends MMS message

Asahi
+1  A: 

Check the android-smspopup source code.

Macarse