Code example for SmsMessage

Methods: getProtocolIdentifier, getPseudoSubject, getServiceCenterAddress, isReplyPathPresent

0
        values.put("address", sms.getOriginatingAddress());
 
        // Use now for the timestamp to avoid confusion with clock 
        // drift between the handset and the SMSC. 
        values.put("date", new Long(System.currentTimeMillis()));
        values.put("protocol", sms.getProtocolIdentifier());
        values.put("read", Integer.valueOf(0));
        if (sms.getPseudoSubject().length() > 0) {
            values.put("subject", sms.getPseudoSubject());
        } 
        values.put("reply_path_present", sms.isReplyPathPresent() ? 1 : 0);
        values.put("service_center", sms.getServiceCenterAddress());
        return values;
    } 
         
 
    /**/ 
     
     
}