Question: I have a textView and text like

"This is the Simple Text with **KeyWord** and the **Link** to browse"

in the above text i want to make..

**clicking on the Link goes to open that URL**
AND
**clicking on that KeyWord open a new Activity in my application**

also,
**There is an click event for the Whole TextView even.**

Please help me finding a solution.
Thank You,
MKJParekh

Answer: 
Generate your TextView in the following manner:

```
TextView t3 = (TextView) findViewById(R.id.text3);
t3.setText(Html.fromHtml("This is the Simple Text with 
    <a href=\'http://www.google.com\'>Keyword</a> and the 
    <a href='startActivityFromLink://some_info'>Link</a> to browse"));
t3.setMovementMethod(LinkMovementMethod.getInstance());

```

Specify your activity the following way:

```
<activity android:name=".TestActivity"
      android:label="@string/app_name">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    <intent-filter>
        <data android:scheme="startActivityFromLink" />
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>

```

I think it should work. Might require some tweaking. I did not get the time to test it. Let me know if it works.
Make Keyword and The link into different TextViews.

Then set the TextView.onClickListener() after you do this.

This is the easiest way, and more logic way.