android– 在intent-filter中处理https架构

android– 在intent-filter中处理https架构,第1张

概述我在Manifest中有一个intent过滤器来处理url上的tap,如果url匹配我的应用程序启动的过滤器数据.<intent-filter><actionandroid:name="android.intent.action.VIEW"/><categoryandroid:name="android.intent.category.DEFAULT"/><categoryandroid:na

我在Manifest中有一个intent过滤器来处理url上的tap,如果url匹配我的应用程序启动的过滤器数据.

<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="http" androID:host="*" port="8765" androID:path="/mypath" /></intent-filter>

当模式为“http”时,Intent过滤器工作,但如果我将其更改为“https”,则意图过滤器不会执行任何 *** 作,并且链接开始在浏览器中加载.

有人知道这里有什么问题吗?

解决方法:

只需在过滤器中添加额外的数据行:

<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="http" androID:host="*" port="8765" androID:path="/mypath" />  <data androID:scheme="https" androID:host="*" port="8765" androID:path="/mypath" /></intent-filter>
总结

以上是内存溢出为你收集整理的android – 在intent-filter中处理https架构全部内容,希望文章能够帮你解决android – 在intent-filter中处理https架构所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1119701.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存