Android-Is it possible to add a clickable link into a string resource

Just use an HTML format link in your resource:

<string name="my_link"><a href="http://somesite.com/">Click me!</a></string>

You can then use setMovementMethod(LinkMovementMethod.getInstance()) on your TextView to make the link clickable.

There is also TextView‘s android:autoLink attribute which should also work.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)