@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmailFromUri(emailResult.getMailtoURI(), emailResult.getEmailAddress(), emailResult.getSubject(), emailResult.getBody()); break; case 1: String[] addresses = new String[1]; addresses[0] = emailResult.getEmailAddress(); addEmailOnlyContact(addresses, null); break; } }
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case 1: addEmailOnlyContact(emailResult.getTos(), null); break; } }
@Override public void handleClick(int buttonID) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (buttonID) { case R.id.button_email: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case R.id.button_add_contact: addEmailOnlyContact(emailResult.getTos(), null); break; } }
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmailFromUri(emailResult.getMailtoURI(), emailResult.getEmailAddress(), emailResult.getSubject(), emailResult.getBody()); break; case 1: String[] addresses = new String[1]; addresses[0] = emailResult.getEmailAddress(); addContact(null, null, addresses, null, null, null, null); break; } }
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: // sendEmail(emailResult.getTos(), // emailResult.getCCs(), // emailResult.getBCCs(), // emailResult.getSubject(), // emailResult.getBody()); break; case 1: // addEmailOnlyContact(emailResult.getTos(), null); break; } }
@Override public CharSequence getDisplayContents() { EmailAddressParsedResult result = (EmailAddressParsedResult) getResult(); StringBuilder contents = new StringBuilder(100); ParsedResult.maybeAppend(result.getEmailAddress(), contents); contents.trimToSize(); return contents.toString(); }
@Override public CharSequence getDisplayContents() { EmailAddressParsedResult result = (EmailAddressParsedResult) getResult(); StringBuilder contents = new StringBuilder(100); ParsedResult.maybeAppend(result.getTos(), contents); contents.trimToSize(); return contents.toString(); }