| |
|
| example.sms.SMSReceive
SMSReceive | public class SMSReceive extends MIDlet implements CommandListener,Runnable,MessageListener(Code) | | An example MIDlet displays text from an SMS MessageConnection
|
Constructor Summary | |
public | SMSReceive() Initialize the MIDlet with the current display object and
graphical components. |
Method Summary | |
public void | commandAction(Command c, Displayable s) | public void | destroyApp(boolean unconditional) Destroy must cleanup everything. | public void | notifyIncomingMessage(MessageConnection conn) Notification that a message arrived. | public void | pauseApp() Pause signals the thread to stop by clearing the thread field. | public void | run() Message reading thread. | public void | startApp() Start creates the thread to do the MessageConnection receive
text. |
connections | String[] connections(Code) | | Connections detected at start up.
|
content | Alert content(Code) | | user interface text box for the contents of the fetched URL.
|
display | Display display(Code) | | current display.
|
done | boolean done(Code) | | Flag to signal end of processing.
|
exitCommand | Command exitCommand(Code) | | user interface command for indicating Exit request.
|
msg | Message msg(Code) | | Current message read from the network.
|
replyCommand | Command replyCommand(Code) | | user interface command for indicating Reply request
|
resumeScreen | Displayable resumeScreen(Code) | | The screen to display when we return from being paused
|
senderAddress | String senderAddress(Code) | | Address of the message's sender
|
sendingMessageAlert | Alert sendingMessageAlert(Code) | | Alert that is displayed when replying
|
smsPort | String smsPort(Code) | | The port on which we listen for SMS messages
|
smsconn | MessageConnection smsconn(Code) | | SMS message connection for inbound text messages.
|
thread | Thread thread(Code) | | instance of a thread for asynchronous networking and user interface.
|
SMSReceive | public SMSReceive()(Code) | | Initialize the MIDlet with the current display object and
graphical components.
|
commandAction | public void commandAction(Command c, Displayable s)(Code) | | Respond to commands, including exit
Parameters: c - user interface command requested Parameters: s - screen object initiating the request |
destroyApp | public void destroyApp(boolean unconditional)(Code) | | Destroy must cleanup everything. The thread is signaled
to stop and no result is produced.
Parameters: unconditional - true if a forced shutdown was requested |
notifyIncomingMessage | public void notifyIncomingMessage(MessageConnection conn)(Code) | | Notification that a message arrived.
Parameters: conn - the connection with messages available |
pauseApp | public void pauseApp()(Code) | | Pause signals the thread to stop by clearing the thread field.
If stopped before done with the iterations it will
be restarted from scratch later.
|
run | public void run()(Code) | | Message reading thread.
|
startApp | public void startApp()(Code) | | Start creates the thread to do the MessageConnection receive
text.
It should return immediately to keep the dispatcher
from hanging.
|
|
|
|