Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using HREF in Android strings.xml file

Tags:

android

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>
like image 407
c12 Avatar asked Dec 01 '22 22:12

c12


1 Answers

<string name="no_device_body">click following link: &lt;a href="http://findmespot.com/en/index.php?cid=116">link1&lt;/a>"</string>

ref: android string.xml reading html tags problem

like image 119
HandlerExploit Avatar answered Dec 10 '22 11:12

HandlerExploit