Here are the things that you need to do to support this :
For the activity to be launched :
Handle the android.intent.category.BROWSABLE category with the a particular scheme.
In WebView onClick, load the url starting with scheme handled by the app.
For ex :
TestActivity
<manifest>
<application>
<activity>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="test-app"/>
</intent-filter>
</activity>
</application>
</manifest>
URL to load after web view click :
webView.loadUrl( "test-app://data-that-you-want-to-transfer" );
HTH !
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…