title: Android- getSpans() always returns an array of length 0
body: <p>This has been driving me crazy:</p>
  
  <pre><code>String message = "Here is some example test with URLs from mattheworiordan.com.
      Any of the URLs which are prefixed with www. should become URLs such as www.mattheworiordan.com/path_name.html
      And an explicit URL such as http://www.mattheworiordan.com/ should become a URL.
      Emails such as matt@google.com should become links to.
      Or email mailto links such as mailto:matt@google.com should become links to.
      And of course lets not forget querstryings such as http://mattheworiordan.com/?test-param=true_or_false" 
  
  SpannableString spannable = new SpannableString(message);
  URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class);
  Linkify.addLinks(spannable, Linkify.ALL);
  Log.v("data_", "length:" + Integer.toString(spans.length));
  </code></pre>
  
  <p>The length of the <code>URLSpan[]</code> array is always 0. What am I doing wrong here and how can I parse all urls in the <code>String</code>?</p>
  
  <p>Edit: <code>Html.fromHtml(message)</code> in place of the message parameter returns the same result.</p>