android通过链接打开自己的app

    xiaoxiao2021-03-25  72

    在清单文件中要打开的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="openMyApp" /> </intent-filter>

    然后你就可以通过openMyApp://www.app.com来打开自己的app了,其实就是把http改成对应自己app中的scheme。这里只说打开自己的app,传参数啥的百度好多,我暂时也没研究那个。

    转载请注明原文地址: https://ju.6miu.com/read-40810.html

    最新回复(0)