Re: [android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-08 Thread skink
TreKing wrote: > On Fri, Dec 7, 2012 at 12:44 PM, skink wrote: > > > try this: > > > > String str = "http://www.google.com > http://www.google.com\";>Google"; > > Spanned html = Html.fromHtml(str); > > Object[] spans = html.getSpans(0, html.length(), URLSpan.class); > >

Re: [android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread TreKing
On Fri, Dec 7, 2012 at 12:44 PM, skink wrote: > try this: > > String str = "http://www.google.com http://www.google.com\";>Google"; > Spanned html = Html.fromHtml(str); > Object[] spans = html.getSpans(0, html.length(), URLSpan.class); > tv.setAutoLinkMask(Linkify

[android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread skink
On Friday, December 7, 2012 5:13:46 AM UTC+1, TreKing wrote: > > I'm trying to display some text that I get from various web sources in > some TextViews. The data is out of my control and may contain links to > other sites. The links may be "raw" or "anchored". By this I mean: > > Raw link is l

[android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread bob
Sounds like you want to use a WebView. On Thursday, December 6, 2012 10:13:46 PM UTC-6, TreKing wrote: > > I'm trying to display some text that I get from various web sources in > some TextViews. The data is out of my control and may contain links to > other sites. The links may be "raw" or "