I want to give a link all twitter @mentions on mytweets app in android. If I click on @mentions I want to open another page about of the @mentions.
This code do not work. Firstly I want to search @mentions in tweet and I give link this @mentions and if I click this @mentions in tweet I want to open another page about of the this @mentions.
TextView bt = (TextView) v.findViewById(R.id.bottomtext);
Pattern atMentionPattern = Pattern.compile("@([A-Za-z0-9_]+)");
String atMentionScheme = "http://twitter.com/";
TransformFilter transformFilter = new TransformFilter() {
public String transformUrl(final Matcher match, String url) {
return match.group(1);
}
};
Linkify.addLinks(bt, Linkify.ALL);
Linkify.addLinks(bt, atMentionPattern, atMentionScheme, null, transformFilter);