Using HREF in Android strings.xml file

android

Solution

What shows in the textview when you use the second string there? Just the URL but not clickable?

Do you have

android:autoLink="web"

or

android:autoLink="all"

set on your TextView in the layout xml file?

Problem

I'm trying to assign the below string from the strings.xml file for a TextView android:text property. I'm unable to get the link to show up as a clickable hyperlink. Any suggestions? I've tried the below techniques. ``` <string name="no_device_body">click following link: <![CDATA[<a href="http://cnn.com">link1</a>]]> </string> <string name="no_device_body">click following link: http://cnn.com"> </string> ```

Original source

Related problems