请问有人能告诉我如何在Android中通过URL打开应用程序吗?
我正在使用以下方法在Android中打开应用程序,但对我没有用。
<data android:scheme="application"/>
我正在传递 URL 的源代码 "application://[RandomText]"
这是打开应用程序的正确方式吗?
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="www.put-your-website.com" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:pathPattern=".*" />
</intent-filter>
阅读有关BroadcastReceiver的内容。应用程序必须注册自己以侦听使用sendBroadcast()发送的意图。之后,用户将看到一个弹出窗口来启动该应用程序。(类似于发送功能,您可以选择使用不同的应用程序发送)