Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Uniform_resource_locator>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

The easiest thing that worked for me iswas to use Linkify

TextView txt_Message = (TextView) view.findViewById(R.id.txt_message); txt_Message.setText("This is link https://www.google.co.in/"); Linkify.addLinks(txt_Message, Linkify.WEB_URLS); 

andAnd it will automatically detect the web urlsURLs from the text in the textview.

The easiest thing that worked for me is to use Linkify

TextView txt_Message = (TextView) view.findViewById(R.id.txt_message); txt_Message.setText("This is link https://www.google.co.in/"); Linkify.addLinks(txt_Message, Linkify.WEB_URLS); 

and it will automatically detect the web urls from the text in the textview.

The easiest thing that worked for me was to use Linkify

TextView txt_Message = (TextView) view.findViewById(R.id.txt_message); txt_Message.setText("This is link https://www.google.co.in/"); Linkify.addLinks(txt_Message, Linkify.WEB_URLS); 

And it will automatically detect the web URLs from the text in the textview.

Source Link
Pravesh
  • 832
  • 1
  • 9
  • 20

The easiest thing that worked for me is to use Linkify

TextView txt_Message = (TextView) view.findViewById(R.id.txt_message); txt_Message.setText("This is link https://www.google.co.in/"); Linkify.addLinks(txt_Message, Linkify.WEB_URLS); 

and it will automatically detect the web urls from the text in the textview.