I have a ListView(with HTML text) which contains hyperlinks in it. I am using the following code to open the hyperlinks in browser :
holder.txtTitle = (TextView)row.findViewById(R.id.answerText);
holder.txtTitle.setMovementMethod(LinkMovementMethod.getInstance());
holder.txtTitle.setAutoLinkMask(Linkify.WEB_URLS);
While this works fine, I notice that sometimes text like "R.abc" or "foo.bar" are also recognised as URLs and opened as hyperlinks on click. How do I differentiate between these and actual hyperlinks ?
Thanks !