Code example for Rfc822Token

0
  @Override 
  public final String convertToString(Cursor cursor) {
    String name = cursor.getString(NAME_INDEX);
    String address = cursor.getString(DATA_INDEX);
 
    return new Rfc822Token(name, address, null).toString();
  } 
 
  private final String makeDisplayString(Cursor cursor) {
    StringBuilder s = new StringBuilder();
    boolean flag = false;
    String name = cursor.getString(NAME_INDEX);
    String address = cursor.getString(DATA_INDEX);
 
    if (!TextUtils.isEmpty(name)) {
      s.append(name);
      flag = true;
    } 
 
    if (flag) {
Stop searching for code, let great code find you!  Add Codota to your java IDE