gpt4 book ai didi

Android ACTION_VIEW 找不到处理 Intent 的 Activity

转载 作者:太空宇宙 更新时间:2023-11-03 13:30:19 25 4
gpt4 key购买 nike

尝试用 TextView 处理 http

              Pattern httpMatcher = Pattern.compile("https?://.*"); 
String httpViewURL = "myhttp";
Linkify.addLinks(label, httpMatcher, httpViewURL);

list 文件:

    <activity android:exported="false"
android:name="*****.URLClickedActivity">

<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="myhttp" />
</intent-filter>
</activity>

无论如何我明白了:

找不到处理 Intent { act=android.intent.action.VIEW dat=(有额外的)*

最佳答案

方案

String httpViewURL = "myhttp";

应该阅读

String httpViewURL = "myhttp://";

关于Android ACTION_VIEW 找不到处理 Intent 的 Activity ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14295866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com