Package totalcross.phone
Class SMS
- java.lang.Object
-
- totalcross.phone.SMS
-
public class SMS extends java.lang.ObjectUsed to send and receive SMS messages. See the SmsSample for an example.
-
-
Constructor Summary
Constructors Constructor Description SMS()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String[]receive()Deprecated.static voidsend(java.lang.String destination, java.lang.String message)Sends the given message to the destination.
-
-
-
Method Detail
-
send
public static void send(java.lang.String destination, java.lang.String message) throws IOExceptionSends the given message to the destination.- Parameters:
destination- The number to send to.message- The message to send. Note that some phones will strip unicode characters.- Throws:
IOException- if an error occurs.
-
receive
@Deprecated public static java.lang.String[] receive() throws IOExceptionDeprecated.Supposed to block until a message becomes available. Does not work on the currently supported platforms.- Throws:
IOException
-
-