So I have a TextView with some text as follows
some text....some text....some text....some text....some text....some text....some text....some text......href.link......some other text.....some other text......some other text.....some other text....some other text...
I just want the link part of the text to start another activity when clicked. I am trying to do this in Xamarin, so far I have done the following:
TextView1.SetText(Html.FromHtml("<span>some text...<a href='example://'></a>...some other text </span>"
In my target activity:
[IntentFilter(new[] { Intent.ActionView },
DataScheme = "example",
Categories = new[] { Intent.CategoryDefault })]
which I am guessing is equivlent to:
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.VIEW" />
<data android:scheme="example" />
</intent-filter>
Not sure what to set as the scheme here.