Android: android:autoLink="web" does not support .me domains -


i have textview set as:

android:autolink="web" 

but when add following text:

textview text = (textview) findviewbyid(r.id.textview01);         text.settext("test\n" +            "http://www.domain1.net\n" +            "\n" +            "http://www.domain2.me\n""); 

only first domain hotlinked, since other 1 .me

is there way specify correct urls autolink ?

thanks!

found problem.

i using 2.1 emulator, , seems domain not supported when 2.1 released. on 2.2 link looks fine.

i download android source see how , found:

    /**  *  regular expression match iana top-level domains web_url.  *  list accurate of 2010/02/05.  list taken from:  *  http://data.iana.org/tld/tlds-alpha-by-domain.txt  *  pattern auto-generated frameworks/base/common/tools/make-iana-tld-pattern.py  */ public static final string top_level_domain_str_for_web_url =     "(?:"     + "(?:aero|arpa|asia|a[cdefgilmnoqrstuwxz])"     + "|(?:biz|b[abdefghijmnorstvwyz])"     + "|(?:cat|com|coop|c[acdfghiklmnoruvxyz])"     + "|d[ejkmoz]"     + "|(?:edu|e[cegrstu])"     + "|f[ijkmor]"     + "|(?:gov|g[abdefghilmnpqrstuwy])"     + "|h[kmnrtu]"     + "|(?:info|int|i[delmnoqrst])"     + "|(?:jobs|j[emop])"     + "|k[eghimnprwyz]"     + "|l[abcikrstuvy]"     + "|(?:mil|mobi|museum|m[acdeghklmnopqrstuvwxyz])"     + "|(?:name|net|n[acefgilopruz])"     + "|(?:org|om)"     + "|(?:pro|p[aefghklmnrstwy])"     + "|qa"     + "|r[eosuw]"     + "|s[abcdeghijklmnortuvyz]"     + "|(?:tel|travel|t[cdfghjklmnoprtvwz])"     + "|u[agksyz]"     + "|v[aceginu]"     + "|w[fs]"     + "|(?:xn\\-\\-0zwm56d|xn\\-\\-11b5bs3a9aj6g|xn\\-\\-80akhbyknj4f|xn\\-\\-9t4b11yi5a|xn\\-\\-deba0ad|xn\\-\\-g6w251d|xn\\-\\-hgbk6aj7f53bba|xn\\-\\-hlcj6aya9esc7a|xn\\-\\-jxalpdlp|xn\\-\\-kgbechtv|xn\\-\\-zckzah)"     + "|y[etu]"     + "|z[amw]))"; 

so seems on each release google updates iana latest domains


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -