android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
来源:互联网 发布:软件生存周期 过程 编辑:程序博客网 时间:2024/06/08 08:01
(转载)http://www.cnblogs.com/seven-sky/p/5499006.html
Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(intent, PICK_CONTACT); 这个跳转为什么部分手机会报错呢?? android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content://com.android.contacts/contacts }
因为有些版本有些rom的android没有提供下载这个activity。或者系统里的那个应用出现问题像这种使用ACTION隐式启动Activity的,最好在之前先判断是否有对应的Activity可以响应。if (intent.resolveActivity(getPackageManager()) != null) { startActivityForResult(intent, PICK_CONTACT); }甚至有些Intent会crash(其他帖子看到):startActivity(
new
Intent(android.provider.Settings.ACTION_WIFI_SETTINGS
这个问题有可能是直接写class名字,有可能不同版本名字不一样引起的问题正确做法是,在跳转的时候不写死的Calss名,而是用的系统提供的Settings.ACTION_WIFI_SETTINGS,如果不同版本的Class名不一样,这里action对应的名字应该会变。
阅读全文
0 0
- 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.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.speech.a
- ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.lby.action }
- ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUM
- 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
- 在5.0 系统设置网络报 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=and
- Android studio出现错误:android.content.ActivityNotFoundException No Activity found to handle Intent { a
- 1015. Reversible Primes (20)
- 抽象类和接口的区别
- Java数组的扩容
- Android网络通信技术之基于HttpURLConnection的POST/GET传值问题
- shell脚本篇一---shell脚本初步
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
- 模板类tips
- 1. 给定两个整形变量的值,将两个值的内容进行交换。 2. 不允许创建临时变量,交换两个数的内容(附加题) 3. 求10 个整数中最大值。 4. 写一个函数返回参数二进制中 1 的个数
- oracle 包 及 包调用
- Android中include标签的使用及注意事项
- Linux安装MySQL
- android制作sdk,通过SDK调用另一个应用的方法
- Identifiers:标识符
- vxWorks对于当前(正在运行)任务时间片操作小结