Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello I am begginer in this. And I am writing little apps for android.

I used linkify to create web links

Java
TextView mytext = (TextView)findViewById(R.id.textView1);
		Pattern pattern = Pattern.compile("MUST");
		String url = "http://must.edu.mn";
		Linkify.addLinks(mytext, pattern, url);


but it works wrong. It goes to "http://must.edu.mnMUST". The pattern string added after the url. I don't know why the pattern added. And how to resolve this?
Posted
Comments
Krunal Rohit 20-Mar-14 14:31pm    
have you tried Linkify.ALL ??

-KR
Purevochir 21-Mar-14 7:58am    
No. What Linkify.ALL do?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900