【发布时间】:2021-10-07 02:40:54
【问题描述】:
我知道 Intent-filter 可用于打开应用程序中的特定 URL。但我希望通过我的应用程序打开所有链接,就像浏览器一样。与启动应用程序不同,我只想对链接执行操作(例如,将其存储在数据库中)。我怎样才能做到这一点?
【问题讨论】:
标签: android android-studio deep-linking intentfilter
我知道 Intent-filter 可用于打开应用程序中的特定 URL。但我希望通过我的应用程序打开所有链接,就像浏览器一样。与启动应用程序不同,我只想对链接执行操作(例如,将其存储在数据库中)。我怎样才能做到这一点?
【问题讨论】:
标签: android android-studio deep-linking intentfilter
我刚刚想通了。 将此意图过滤器用于您要在其中执行操作的活动。
<data
android:host="*"
android:scheme="https" />
这将通过您的应用打开所有 https 网址。
【讨论】: