Home  >  Forum  >  Android
Post New Query

How to open a URL in android App in browser



Asked on September 14, 2015
I need to open a URL in browser from my android app. URL is written in TextView. Any Help?



Replied on September 15, 2015
Use Html.fromHtml() and setMovementMethod(LinkMovementMethod.getInstance()) as follows

TextView text;
text.setText(Html.fromHtml("Visit <a href='http://www.concretepage.com'>concretepage.com</a>");
text.setMovementMethod(LinkMovementMethod.getInstance());




Replied on September 15, 2015
Great. Its working.

Write Answer







©2019 concretepage.com | Privacy Policy | Contact Us