Class SMS


  • public class SMS
    extends java.lang.Object
    Used 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 void send​(java.lang.String destination, java.lang.String message)
      Sends the given message to the destination.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SMS

        public SMS()
    • Method Detail

      • send

        public static void send​(java.lang.String destination,
                                java.lang.String message)
                         throws IOException
        Sends 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 IOException
        Deprecated.
        Supposed to block until a message becomes available. Does not work on the currently supported platforms.
        Throws:
        IOException