A bit more info:

I searched through the android code to find linkify.java. As I posted
earlier that seemed to make my URLSpan code work.
I found this line of code:

        MovementMethod mm = tv.getMovementMethod();
        if (!(mm instanceof LinkMovementMethod))
        {
                tv.setMovementMethod(LinkMovementMethod.getInstance());
        }

So a pasted this into the code and it made the code work (well up to
the same point i was at). Thing is I have no idea what it is doing.
Can anyone help?

Cheers

On 27 Nov, 20:37, doddy <[EMAIL PROTECTED]> wrote:
> Thanks Mark for this information.
>
> Although this isnt exactly what I am after it did however enable the
> spannable feature to work which is strange. I cant use the linkify
> class (I dont think) because I wont be linking to emails or web
> addresses which is what the linkify class does. I am trying to write
> an app similar to Tomboy which links notes to each other notes with
> automatic highlighting of titles etc etc
>
> But as I said using linkify on the text at the same time did enable
> the URLSpan feature to work!, this tells me that there is something
> else that I need to do in order for URLSpan to work on its own. I did
> find the following while googling:
>     android:linksClickable="true"
> but this does not seem to make any difference.
>
> Anyone have any ideas what I need to do to enable these clickable
> callbacks?
>
> On 27 Nov, 14:08, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > doddy wrote:
> > > * Bump * can anyone help? I cant find an answer anywhere
>
> > I've never fussed with this myself, but maybe these leads will help...
>
> > Try Linkify:
>
> >http://code.google.com/android/reference/android/text/util/Linkify.html
>
> > Look at the WikiNotes sample app:
>
> >http://code.google.com/p/apps-for-android/
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.4 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to