title: Do mailto links in Android need to be URL encoded for mail Intents to work?
body: <p><strong>Environment:</strong></p>
  
  <p>Windows Server 2012 Standard <br> 
  Android Studio 0.5.8 - android-19 <br>
  JRE 1.7.0_51</p>
  
  <p><strong>Description of problem:</strong> </p>
  
  <p>Overriding URL loading in an Android web view to start an email intent fails to identify mailto properties.</p>
  
  <pre>
  MailTo.parse("mailto:?subject=Something%20interesting%20from%20Google&body=GooglePlus%20(%20https://google.com/plus%20)")
  </pre>
  
  <p>returns:</p>
  
  <pre>
  key: "to"
  value: "/plus)"
  </pre>
  
  <p>when email intent is prepared by:</p>
  
  <pre>
  
      Intent intent = new Intent(Intent.ACTION_SENDTO);
      intent.putExtra(Intent.EXTRA_EMAIL, new String[] { address });
      intent.putExtra(Intent.EXTRA_TEXT, body);
      intent.putExtra(Intent.EXTRA_SUBJECT, subject);
      intent.putExtra(Intent.EXTRA_CC, cc);
      intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
      intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      intent.setType("message/rfc822");
      intent.setData(Uri.parse("mailto:")); // only email apps should handle this
      return intent;
  
  </pre>
  
  <p>then:</p>
  
  <pre>
  
      if (url.startsWith("mailto:")) {
          MailTo mailTo = MailTo.parse(url);
          Intent intent = newEmailIntent(mailTo.getTo(), mailTo.getSubject(), mailTo.getBody(), mailTo.getCc());
          _mainActivity.startActivity(Intent.createChooser(intent, "Send Email..."));
          return true;
      }
  
  </pre>
  
  <p>If I remove the colon in the transfer protocol or replace it with %3a then the subject and body are parsed as expected.</p>
  
  <p><strong>Question</strong>: in the title ^.</p>
  
  <p>Thanks in advance.</p>