Home  >  Forum  >  Android
Post New Query

How to open a URL in android App in browser


joined on
April 01,2014
Asked on September 14,2015
I need to open a URL in browser from my android app. URL is written in TextView. Any Help?
joined on
March 14,2013
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());

joined on
April 01,2014
Replied on September 15,2015

Great. Its working.

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us