title: DIfference between Uri.fromParts and Uri.parse?
body: <p>I'm creating an Intent for Android, to send e-mails.</p>
  <p>And I'm getting confused about the behavior of Uri.fromParts.</p>
  <p>Mi code:
  This works fine!</p>
  <pre><code>uri=Uri.parse(
    &quot;mailto:&quot; + toAddress +
      (subject != null ?
        (&quot;?&quot; + &quot;subject=&quot; + Uri.encode(subject)) :
        &quot;&quot;)
  </code></pre>
  <p>The previous work fine, and create an Uri in the form <code>mailto:john@doe.com?subject=Test</code></p>
  <p>But if I try to use Uri.from parts, with this sample:</p>
  <pre><code>uriBuilder=Uri.fromParts(&quot;mailto&quot;,toAddress,null).buildUpon();
  if (subject!=null) {
      uriBuilder.appendQueryParameter(&quot;subject&quot;,subject);
  }
  uri=uriBuilder.build();
  </code></pre>
  <p>I get an error. The final uri is <code>mailto:?subject=Test</code></p>
  <p>The intermediate is correct, but when I use appendQueryParameter, it removes the content after the mailto scheme.</p>
  <p>Do you know why? Which is the canonical way to do this?</p>