In your AndroidManifest.xml
file, try adding an intent filter in your <activity>
which you want to open from the link
<activity
android:name=".YourActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data
android:host="www.zoomit.ir"
android:scheme="http"></data>
</intent-filter>
</activity>
assuming www.zoomit.ir
is the link which should open the app
Inorder to open this url in webview first get this url by using intent in your activity's onCreate
String url;
Intent intent = getIntent();
String action = intent.getAction();
Uri data = intent.getData();
if (data!=null) {
webView.loadUrl(data.getScheme()+"://"+data.getHost()+data.getPath());
}
Now you will have url
="www.zoomit.ir/example-post". Use this url
to load webview