[英]Android ACTION_VIEW No Activity found to handle Intent
尝试使用textview处理http
Pattern httpMatcher = Pattern.compile("https?://.*");
String httpViewURL = "myhttp";
Linkify.addLinks(label, httpMatcher, httpViewURL);
清单文件:
<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://";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.