Add the following configuration snippet to the AndroidManifest.xml for your Android application:
<action android:name="my_action"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="my_scheme" android:host="my_host" />
Then add the following tag to the web page:
<a href="intent://my_host#Intent; scheme=my_scheme; action=my_action; end">Link to my stuff</a>
Open a Web page on your phone, click on a hyperlink, and the Android app will open automatically:
For more of Jerry’s original articles, please follow the official account “Wang Zixi “: