Code example for SmsManager: Sending Text Messages (SMS)

Methods: sendTextMessage

        try { 
            // TODO: Display a toast or something when this succeeds? 
            // Note: This does not store the message in the sent folder. 
            // TODO: Optionally store messages in sent folder? 
            manager.sendTextMessage(destinationAddress, null, text, null, null);
        } catch (NullPointerException e) {
            // Seems to occur when SMS can't be sent (e.g. no service?) 
    // @Hide 
    public static FeatureConfig fromArray(Context context, String[] theArray) {
        return new SmsFeature(context, theArray[SMS_ARRAY_OFFSET_ACTION], theArray[SMS_ARRAY_OFFSET_CONTACT],