I have a text view. In that I have text like this "You may visit this: http://www.google.com". After clicking this link it should open it in a webview instead of default browser. My code is:
//MainActivity.java
link = (TextView) findViewById(R.id.textView);
link.setText("You may visit here : http://www.google.com");
link.setMovementMethod(LinkMovementMethod.getInstance());
//Manifest
<activity
            android:name="com.xpointers.xpmediaapp.mediaapp.WebViewActivity"
            android:label="@string/app_name">
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
                <action android:name="android.intent.action.VIEW" />
            </intent-filter>
        </activity>
I tried using this link: handle textview link click in my android app but failed to understand and what should I write in WebviewActivity?
 
     
     
     
     
     
    