Android意图筛选器数据https不工作
以下代码不起作用:Android意图筛选器数据https不工作,android,intentfilter,Android,Intentfilter,以下代码不起作用: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.DEFAULT" /> <data andro
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="https" />
<data android:scheme="http" />
</intent-filter>
我做错了什么?当我尝试打开http链接时,这段代码起作用,我可以以浏览器的形式打开我的活动,但在https链接上这不起作用
编辑:这是我打开链接时的代码:
startActivity(新意图(Intent.ACTION_视图,Uri.parse(link))代码>您如何尝试https://
链接?我从whatsapp聊天中获得,并从我编写的帮助程序应用中获得。您的帮助程序如何尝试https://
链接?您无法控制WhatsApp。它使用其中的https
url创建意图。显示您正在创建和使用Intent
的代码。