隐试意图:ActivityNotFoundException: No Activity found to handle Intent
来源:互联网 发布:win10下看不到mac分区 编辑:程序博客网 时间:2024/06/04 17:55
btn=(Button) findViewById(R.id.btn);btn.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {String text=et.getText().toString().trim();Intent intent=new Intent(MainActivity.this,MyBroadCastReceiver.class);intent.putExtra("text", text);//startActivity(intent); 应该是发送广播sendBroadcast(intent);}});今天在练习BroadCastReceiver的demo, 结果老是报错:No Activity found to handle Intent。原来是隐试意图,后面换为显示意图 还是不行。最后发现:在写button的click事件时,把sendBroadcast(intent);弄成了startActivity(intent); 蛋碎~
0 0
- 隐试意图:ActivityNotFoundException: No Activity found to handle Intent
- ActivityNotFoundException: No Activity found to handle Intent
- ActivityNotFoundException: No Activity found to handle Intent
- 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
- 解决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
- ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
- ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUM
- android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.a
- cocoapods自己应用
- cocos2d-x 通过JNI实现c/c++和Android的java层函数互调
- scrapy-redis源码分析
- NicEditor——超轻量级文本编辑器
- VMWARE - Vmware下磁盘类型区分IDE、SCSI:Buslogic LSIlogic
- 隐试意图:ActivityNotFoundException: No Activity found to handle Intent
- html5开发手机打电话发短信功能,html5的高级开发,html5开发大全,html手机电话短信功能详解
- 开心消消乐分析
- 【浮点取整】#39 A.Find Color
- IE11的兼容性以及如何卸载
- 系统调用详解
- 黑马程序员----集合
- php2
- ios--弹出窗口效果的制作(Core animation, CALayer)