Q:

Linkify is adding %20 in my url and is not opening exact url

i am opening a website using linkify feature of android and getting %20 in my url when opening from my device so what should i do?
here is what i am doing
license=(TextView)findViewById(R.id.find_us_tv3);

    license.setTextSize(18);
    Pattern pattern=Pattern.compile("p"+"[page stackoverflow]+stackoverflow");

    license.setText(" Open the demo page stackoverflow.");
    license.setLinksClickable(true);
    Linkify.addLinks(license, pattern, "http://stackoverflow.com/questions/ask"); 

A:

The "http:/" in your code of
"Linkify.addLinks(license, pattern, "http:/https://stackoverflow.com/questions/ask")"
 twice doesn't help.  
Just use:  
Pattern pattern = Pattern.compile("www.stackoverflow.com/questions/ask");
Linkify.addLinks(license, pattern, "http://");  

Where the text that you mention in pattern should be a part of the text you set in your TextView 
Refer: linkify blog link

