public static Uri formatContactIdToUri(ContactId contactId){
  if (contactId == null) {
    throw new IllegalArgumentException("ContactId is null");
  }
  if (sRcsSettings.isTelUriFormatUsed()) {
    return Uri.parse(TEL_URI_HEADER.concat(contactId.toString()));
  }
  return Uri.parse(SIP_URI_HEADER + contactId + "@"+ sRcsSettings.getUserProfileImsDomain()+ ";user=phone");
}

public static Uri formatContactIdToUri ( ContactId contactId ) { if ( contactId == null ) { throw new IllegalArgumentException ( "ContactId is null" ) ; } if ( sRcsSettings . isTelUriFormatUsed ( ) ) { return Uri . parse ( TEL_URI_HEADER . concat ( contactId . toString ( ) ) ) ; } return Uri . parse ( SIP_URI_HEADER + contactId + "@" + sRcsSettings . getUserProfileImsDomain ( ) + ";user=phone" ) ; }
format contactid to tel or sip uri
