I am trying to use Linkify with a custom template that should match phone numbers 10 or 11 digits long. I wrote the following code -
Pattern japPhoneNoPattern = Pattern.compile("[0-9]{10,11}");
Linkify.addLinks(viewHolder.right_message, japPhoneNoPattern, "");
But this is not a conversion of text into a link. Any idea what I can do wrong?
In case that matters, I use the link inside the ListView.
source
share