public class

SmsReceiverService

extends Service
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ com.android.mms.transaction.SmsReceiverService

Class Overview

This service essentially plays the role of a "worker thread", allowing us to store incoming messages to the database, update notifications, etc. without blocking the main thread that SmsReceiver runs on.

Summary

Constants
String ACTION_SEND_MESSAGE
String CLASS_ZERO_BODY_KEY
String EXTRA_MESSAGE_SENT_SEND_NEXT
String MESSAGE_SENT_ACTION
[Expand]
Inherited Constants
From class android.app.Service
From class android.content.Context
From interface android.content.ComponentCallbacks2
Fields
public Handler mToastHandler
Public Constructors
SmsReceiverService()
Public Methods
IBinder onBind(Intent intent)
void onCreate()
void onDestroy()
int onStartCommand(Intent intent, int flags, int startId)
synchronized void sendFirstQueuedMessage()
[Expand]
Inherited Methods
From class android.app.Service
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2

Constants

public static final String ACTION_SEND_MESSAGE

Constant Value: "com.android.mms.transaction.SEND_MESSAGE"

public static final String CLASS_ZERO_BODY_KEY

Constant Value: "CLASS_ZERO_BODY"

public static final String EXTRA_MESSAGE_SENT_SEND_NEXT

Constant Value: "SendNextMsg"

public static final String MESSAGE_SENT_ACTION

Constant Value: "com.android.mms.transaction.MESSAGE_SENT"

Fields

public Handler mToastHandler

Public Constructors

public SmsReceiverService ()

Public Methods

public IBinder onBind (Intent intent)

public void onCreate ()

public void onDestroy ()

public int onStartCommand (Intent intent, int flags, int startId)

public synchronized void sendFirstQueuedMessage ()