AlertDialog with urls and text
<p>I am trying to show in an android AlertDialog some text and some words to be clickable opening a web page. I am doing something wrong with it cause it does not open the link i am telling him and the hole text is clickable, which i am trying to avoid....
This is my code:</p>

<pre><code>final SpannableString s = new SpannableString(
                        Html.fromHtml("&lt;br&gt;&lt;a href=\"http://google.com\"&gt;a new link&lt;/a&gt;")
                        );

        final TextView tx1 = new TextView(this);
        tx1.setText(getString(R.string.librarytextpart1) 
                + s
                + getString(R.string.librarytextpart2));
        tx1.setAutoLinkMask(RESULT_OK);
        tx1.setMovementMethod(LinkMovementMethod.getInstance());

        Linkify.addLinks(s, Linkify.ALL);
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setTitle(getString(R.string.library))
                .setCancelable(false)
                .setPositiveButton("OK",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int id) {
                            }
                        })

                .setView(tx1).show();
</code></pre>

<p>When clicked on the SpannableString text in dialog, it shows the entire text is clickable ... and still does not open a webpage. For sure I don't understand something right from the documentation, but don't see what. Can you help, please?</p>
