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.