|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.drismo.logic.sms.MessageHandler
public class MessageHandler
This class is sending out the SMS-messages, and making sure the receivers doesn't get duplicate messages.
Field Summary | |
---|---|
private static java.util.ArrayList<java.lang.String> |
notifiedNumbers
|
private static android.telephony.SmsManager |
SM
|
Constructor Summary | |
---|---|
MessageHandler()
|
Method Summary | |
---|---|
static void |
addNumber(java.lang.String nr)
Add a new phone number to the notified list. |
static void |
clearNumbers()
Clear the notified numbers list. |
static java.util.ArrayList<java.lang.String> |
getNumberArray()
Get the list of already notified numbers. |
static void |
sendSMS(java.lang.String recipient,
java.lang.String message)
Send an SMS-message to a specified receiver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static android.telephony.SmsManager SM
private static java.util.ArrayList<java.lang.String> notifiedNumbers
Constructor Detail |
---|
public MessageHandler()
Method Detail |
---|
public static void addNumber(java.lang.String nr)
nr
- Phone number to add to the notified list.public static void clearNumbers()
public static java.util.ArrayList<java.lang.String> getNumberArray()
ArrayList
with all the numbers.public static void sendSMS(java.lang.String recipient, java.lang.String message)
recipient
- The phone number to send the message to.message
- The message content.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |