|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.silentsoftware.textmessage.TextMessageSender
public class TextMessageSender
Small class simply to send FollowMe text messages (not standard SMS port messages)
| Field Summary | |
|---|---|
static java.lang.String |
REQUEST
Constant for requesting the position from a friend |
static java.lang.String |
SEND
Constant for sending the position to a friend |
static java.lang.String |
SMS_PORT
The FollowMe port |
static java.lang.String |
SMS_PROTOCOL
Standard SMS protocol |
| Constructor Summary | |
|---|---|
TextMessageSender()
|
|
| Method Summary | |
|---|---|
void |
run()
Background thread to simply send the text message provided in this class to the given address |
void |
sendTextMessage(java.lang.String destAddress,
java.lang.String body)
Sends text messages by starting a new thread |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SMS_PORT
public static final java.lang.String SMS_PROTOCOL
public static final java.lang.String REQUEST
public static final java.lang.String SEND
| Constructor Detail |
|---|
public TextMessageSender()
| Method Detail |
|---|
public void sendTextMessage(java.lang.String destAddress,
java.lang.String body)
destAddress - body - public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||