public class

SmsMessageSender

extends Object
implements MessageSender
java.lang.Object
   ↳ com.android.mms.transaction.SmsMessageSender
Known Direct Subclasses

Summary

[Expand]
Inherited Constants
From interface com.android.mms.transaction.MessageSender
Fields
protected final Context mContext
protected final String mMessageText
protected final int mNumberOfDests
protected final String mServiceCenter
protected final long mThreadId
protected long mTimestamp
Public Constructors
SmsMessageSender(Context context, String[] dests, String msgText, long threadId)
Public Methods
boolean sendMessage(long token)
Send the message through MMS or SMS protocol.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.mms.transaction.MessageSender

Fields

protected final Context mContext

protected final String mMessageText

protected final int mNumberOfDests

protected final String mServiceCenter

protected final long mThreadId

protected long mTimestamp

Public Constructors

public SmsMessageSender (Context context, String[] dests, String msgText, long threadId)

Public Methods

public boolean sendMessage (long token)

Send the message through MMS or SMS protocol.

Parameters
token The token to identify the sending progress.
Returns
  • True if the message was sent through MMS or false if it was sent through SMS.
Throws
MmsException