开发者

How to add a web address in a AlertBox as a link?

开发者 https://www.devze.com 2023-03-09 00:46 出处:网络
I am showing a Alertbox after clicking a button. The Alert box is customised one. Along 开发者_如何学编程with the Alert title it has to show a web address like http://www.google.com. While clicking th

I am showing a Alertbox after clicking a button. The Alert box is customised one. Along 开发者_如何学编程with the Alert title it has to show a web address like http://www.google.com. While clicking the web it site has to load in a seperate Activity with the content of the specific address.I am using a webview and the website is loading successfully the problem is, not able to show the web address in alertbox. It will be better if i can show it as a link.

thanks and regards Parvathi


String text = "<a href=http://www.google.de>Link zum klicken</a>";
builder.setMessage(Html.fromHtml(text));
0

精彩评论

暂无评论...
验证码 换一张
取 消