uk.co.silentsoftware.textmessage
Class TextMessageSender

java.lang.Object
  extended by uk.co.silentsoftware.textmessage.TextMessageSender
All Implemented Interfaces:
java.lang.Runnable

public class TextMessageSender
extends java.lang.Object
implements java.lang.Runnable

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

SMS_PORT

public static final java.lang.String SMS_PORT
The FollowMe port

See Also:
Constant Field Values

SMS_PROTOCOL

public static final java.lang.String SMS_PROTOCOL
Standard SMS protocol

See Also:
Constant Field Values

REQUEST

public static final java.lang.String REQUEST
Constant for requesting the position from a friend

See Also:
Constant Field Values

SEND

public static final java.lang.String SEND
Constant for sending the position to a friend

See Also:
Constant Field Values
Constructor Detail

TextMessageSender

public TextMessageSender()
Method Detail

sendTextMessage

public void sendTextMessage(java.lang.String destAddress,
                            java.lang.String body)
Sends text messages by starting a new thread

Parameters:
destAddress -
body -

run

public void run()
Background thread to simply send the text message provided in this class to the given address

Specified by:
run in interface java.lang.Runnable