How to link text in a TextView to open web URL
I've spent over an hour looking at plenty of examples and none of it actually works for setting text in a TextView to link to a web URL. Example code! text8 = (TextView) findViewById(R.id.textView4); text8.setMovementMethod(LinkMovementMethod.getInstance()); Strings.xml <string name="urltext"><a href="http://www.google.com">Google</a></string> main.xml <TextView android:id="@+id/textView4" android:layout_width="match_parent" android:layout_height="wrap_content" android:autoLink="web" android:linksClickable="true" android:text="@string/urltext" android:textAppearance="?android:attr