Ok so I asked this yesterday:
AutoLink @mentions in a twitter client
I got my @mentions linking correctly. But in order to get it to work I had to take andro
use below code:
TextView textView = (TextView) findViewById(R.id.hello);
String str = "@aman_vivek how are u #aman_vivek ";
textView.setText(str);
Pattern wikiWordMatcher = Pattern.compile("(@[a-zA-Z0-9_]+)");
String wikiViewURL = "http://www.twitter.com/";
Linkify.addLinks(textView, wikiWordMatcher, wikiViewURL);
Pattern wikiWordMatcher1 = Pattern.compile("\\b(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]");
Linkify.addLinks(textView, wikiWordMatcher1, null);