android.content.ActivityNotFoundException: No Activity found to handle Intent
来源:互联网 发布:中国大学生失业率数据 编辑:程序博客网 时间:2024/06/06 03:55
一般来说,在anroid项目里面进行如下操作:
Uri uri = Uri.parse(“http://www.baidu.com”);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
是可以正常跳转到网页打开相应链接。
不过如果是要访问“www.baidu.com”这样的网址或者纯文字时,可能会报ActivityNotFoundException错误。
此时需要设置如下属性,就可以正常跳转了:
intent.setClassName("com.android.browser",
"com.android.browser.BrowserActivity");
记录此错误。
0 0
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent {
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
- [Android一千零一个] android.content.ActivityNotFoundException: No Activity found to handle Intent
- Android studio出现错误:android.content.ActivityNotFoundException No Activity found to handle Intent { a
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.speech.a
- android.content.ActivityNotFoundException: No Activity found to handle Intent 的错误
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.lby.action }
- android.content.ActivityNotFoundException: No Activity found to handle Inten
- 首次使用gradle构建项目
- linux终端中文乱码问题
- 数据结构--数组
- android中的键值对
- 终端命令
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- CUDA总结:线程网络和线程分配
- 怎么编写makefile
- 216. Combination Sum III
- 数据结构期末总结
- Mysql日期类型
- 二:Hibernate映射机制
- Android开发中这些小技巧你都知道吗?(一)
- oracle linux 7 安装oracle 12c