How to make linkable TextView with Linkify

by Marco Rocco » Thu, 14 Oct 2010 01:32:18 GMT

Sponsored Links
 I would make a textview linkable, and i have tried with this code:

TextView textview;
for (int i = 0; i < 5; i++) {
        textview = new TextView(this);
        htmlString = "<a href=' '>Try Me</a>";
        Linkify.addLinks(textview, Linkify.WEB_URLS);
        lx.addView(textview, layoutParams);

but when i click on a textview nothing happens!

Anyone can help me?


How to make linkable TextView with Linkify

by Dimitris » Thu, 14 Oct 2010 01:39:46 GMT

 I think you might have to call setMovementMethod() on your textview.



Sponsored Links

Other Threads

1. Product images for marketing materials

Dear All,

What do people know about rights to reproduce device graphics for web
sites and marketing materials?

I have some great images of the Galaxy Tab that were published with
their launch press release, and I have assembled a flyer showing my
app running on it.  However, my printer won't print it unless I can
convince him that I have the right to do so.  I've spent a long time
trying to reach the right person at Samsung but so far without any
luck ("you are in a twisty maze of telephone menu options, press 1 to
abandon hope").  So, I'm wondering if anyone has any experience to
share or perhaps suggestions of other manufacturers whose material is
published with a clear re-use rights statement.  If not, the flyer is
only going to have pictures of Apple devices on it, which would be

Many thanks,  Phil.


2. Ajax cross domain requests


the behavior of XMLHttpRequests in Android is very odd when doing
cross domain requests. The browser should either fail with an error
and not perform the request, or it should follow CORS (http:// and start with an OPTIONS request to
the remote domain. The Android browser (2.1 and 2.2) instead performs
the request, which is received by the remote server (and this is the
dangerous part both for data leaking and remote attacks), but the
response is not set in the javascript (status of 0 and responseText



3. android.process.acore

4. detection twist using orientation sensor

5. Run instructions at the end of six animations played together

6. FW: r--.

7. voice recognition with voice input settings