How can I add a link to a dialog message?
I tried the following code, but the link doesn’t do anything on onclick:
builder.setMessage(Html.fromHtml(
"Click on the " +
"<a href=\"http:\\www.google.com\">link</a> " +
"to download."));
It didn’t work for //www.google.com either.
Standard implementation of dialog doesn’t allow you to do such fancy stuff. You need to create a custom dialog by setting a custom layout content to it. For example:
For more details, read this and this.