title: How do I get a string that contains a link in Android?
body: <p>following problem: I have got a method that generates the result of some computation and returns this result as a string. Now I would like this result to contain a clickable link. How do I do that? </p>
  
  <p>Here is what I have done so far:</p>
  
  <p>This is part of my method that generates the result string:</p>
  
  <pre><code>Spanned link = Html.fromHtml("&lt;a href='http://www.apple.com'&gt;Apple.com&lt;/a&gt;");
  String result = "Website is: " + link;
  </code></pre>
  
  <p>Then, in another method that uses the String <code>result</code> I just set the text of the TextView <code>resultText</code> like this:</p>
  
  <pre><code>resultText.setText(result);
  </code></pre>
  
  <p>The problem is that while the text is displayed the text is not a link and hence not clickable. However, I already set this attribute in XML file of the according TextView:</p>
  
  <pre><code>android:linksClickable="true"
  </code></pre>
  
  <p>What is wrong here?</p>