title: How to have text and clickable URL link on Alertdialog?
body: <p>I read sample codes and tried something below, but it doesn't work. The text didn't appear to be a hyperlink. Please help:(</p>
  
  <pre><code>String randomString = XXXX.getString();
          if(randomString .contains("XXXX"))
          {
              TextView tv  = new TextView(this);
              tv.setMovementMethod(LinkMovementMethod.getInstance());
              tv.setText(randomString +"/n"+Html.fromHtml("&lt;a href=https://play.google.com/store/apps/details?id=com.xxxxxxxxx&gt;Click Here&lt;/a&gt;"));
              AlertDialog dialog = new AlertDialog.Builder(activity.this)
              .setView(tv)
              .setPositiveButton("OK!", new DialogInterface.OnClickListener()
              {
  
                  public void onClick(DialogInterface dialog, int which)
                  {
  
                  }
              })
              .show();
  
          }
  </code></pre>
  
  <p>EDIT: 
  This work:</p>
  
  <pre><code>tv.setText(Html.fromHtml("&lt;br&gt;&lt;a href=https://play.google.com/store/apps/details?id=com.xxxxxxxxx&gt;Click Here&lt;/a&gt;"));
  </code></pre>
  
  <p>without the    <code>randomString+</code></p>
  
  <p>As soon as I put the randomString+Html.fromHtml....   The "Click Here" become a regular text</p>
  
  <p>But I would like to put the randomString inside the textview as well. </p>