public class SmsStorageMonitor extends Handler
SMSDispatcher
, and has been moved
into a separate class to support instantiation of multiple SMSDispatchers on
dual-mode devices that require support for both 3GPP and 3GPP2 format messages.Handler.Callback
Constructor and Description |
---|
SmsStorageMonitor(Phone phone)
Creates an SmsStorageMonitor and registers for events.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
handleMessage(Message msg)
Handles events coming from the phone stack.
|
boolean |
isStorageAvailable()
Returns whether or not there is storage available for an incoming SMS.
|
dispatchMessage, dump, getLooper, getMessageName, getTraceName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, runWithScissors, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
public SmsStorageMonitor(Phone phone)
phone
- the Phone to usepublic void dispose()
public void handleMessage(Message msg)
handleMessage
in class Handler
msg
- the message to handlepublic boolean isStorageAvailable()