I am struggling to make my links clickable within an Android application. I have tried the following:
<ScrollView
<RelativeLayout
<TextView
...
android:id="@+id/textView"
android:text="@string/stringName"
android:linksClickable="true"
android:autoLink="web"
with either
<string name="stringName"><a href="http://www.example.com">String</a></string>
or
<string name="stringName"><a href="http://www.example.com">String</a></string>
while also incorporating
((TextView) findViewById(R.id.textView)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView) findViewById(R.id.textView)).setText(Html.fromHtml(getResources().getString(R.string.stringName)));
in my .java
EDIT: I can make my string appear as clickable using the former method in my string.xml file, however, when I click on it nothing happens. I believe it is because I am clicking on either the relativeLayout or even more likely the ScrollView as opposed to the TextView