Are you missing a call to unregisterReceiver()? 解决方法
来源:互联网 发布:农村淘宝投诉电话多少 编辑:程序博客网 时间:2024/04/27 15:22
Activity com.test.Activity has leaked IntentReceiver android.widget.TextView$4@41e344a8
that was originally registered here. Are you missing a call to unregisterReceiver()?
这个错误是我在 finish Activity时出现的
问题在于
1、跳转到新的Activity时是用的startActivityForResult 方法 , finish之前 没有 调用 setResult 方法
2、finish的时候,我Toast一下,注释了就没事了。
//Toast.makeText(Activity.this, "操作成功", 100).show();Intent intent = new Intent();intent.putExtra("data_type", 2);intent.setAction("test_reciver");sendBroadcast(intent);finish();
不管怎么样,问题是解决了,可是为啥还是不清楚
Toast一下,就报这错吗,哪位大神知道,赐教一下下
0 0
- Are you missing a call to unregisterReceiver()? 解决方法
- Are you missing a call to unregisterReceiver()?
- Are you missing a call to unregisterReceiver()?
- 关于"Are you missing a call to unregisterReceiver()? "错误
- 【异常处理】Are you missing a call to unregisterReceiver()?
- opposdk---Are you missing a call to unregisterReceiver()?
- has leaked IntentReceiver ...that was originally registerd here.Are you missing a call to unregister
- Activity has leaked IntentReceiver that was originally registered here. Are you missing a call to un
- Activity has leaked IntentReceiver that was originally registered here. Are you missing a call to u
- Convenience initialzer missing a self call to another initializer警告
- are you a loser?
- |||So You Are Going to a New School_3616
- 【unity3d异常】 AnimationEvent 'NewEvent' has no receiver! Are you missing a component?
- 【Unity3D游戏开发】`UnityEditor' could not be found Are you missing a using directive ... (二九)
- The current type is an interface and cannot be constructed. Are you missing a type mapping?
- To be a Great Programmer, you must admit that you are a Terrible Programmer
- ssh 登录出现Are you sure you want to continue connecting (yes/no)?解决方法
- ssh 登录出现Are you sure you want to continue connecting (yes/no)?解决方法
- Eclipse-jee中安装tomcatPlugin
- 【leetcode】 Longest Common Prefix
- lua中Table数据结构
- 《COC部落战争》新手速成攻略
- UVa 1401 Remember the Word
- Are you missing a call to unregisterReceiver()? 解决方法
- 命令行提示符里怎么远程连接MongoDB
- UITextView 文本换行
- 分布式搜索引擎elasticsearch PHP API index curd
- mongodb在需要用户名密码授权的情况下导入数据
- Pinyin4j.jar介绍中文转拼音
- [036] 微信公众帐号开发教程第12篇-符号表情的发送(下)
- Flex默认安装破解版
- 对ActiveX控件中实现文档视图结构的理解和补充