public static String buildCpimMessage(String from,String to,String content,String contentType,long timestampSent){
  return CpimMessage.HEADER_FROM + ": " + formatCpimSipUri(from)+ CRLF+ CpimMessage.HEADER_TO+ ": "+ formatCpimSipUri(to)+ CRLF+ CpimMessage.HEADER_DATETIME+ ": "+ DateUtils.encodeDate(timestampSent)+ CRLF+ CRLF+ CpimMessage.HEADER_CONTENT_TYPE+ ": "+ contentType+ ";charset="+ UTF8_STR+ CRLF+ CRLF+ content;
}

public static String buildCpimMessage ( String from , String to , String content , String contentType , long timestampSent ) { return CpimMessage . HEADER_FROM + ": " + formatCpimSipUri ( from ) + CRLF + CpimMessage . HEADER_TO + ": " + formatCpimSipUri ( to ) + CRLF + CpimMessage . HEADER_DATETIME + ": " + DateUtils . encodeDate ( timestampSent ) + CRLF + CRLF + CpimMessage . HEADER_CONTENT_TYPE + ": " + contentType + ";charset=" + UTF8_STR + CRLF + CRLF + content ; }
build a cpim message
