Wednesday, October 24, 2012

convert text to url.


Linkify is used to convert text to link and text to dial phone number also used.

so we used us Linkify.ALL method.


TextView link = (TextView) findViewById(R.id.link);

link.setText("www.google.com");
Linkify.addLinks(link, Linkify.ALL);

No comments:

Post a Comment