错误代码是:
07-07 08:34:19.693 11797-11809 E/JavaBinder﹕
*** Uncaught remote exception! (Exceptions are not yet supported
across processes.)
android.util.AndroidRuntimeException: { what=102 when=-22ms
obj=android.os.BinderProxy@4218d598 } This message is already in
use.
我现在不能很肯定是哪里的消息使用错误,请大神们帮我看看这段代码有没有错误
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_alarm);
ctext = this;
CfgLooper = Looper.myLooper();
CfgHandler = new CfgHandler(CfgLooper);
show_alarm();
}
public class CfgHandler extends Handler {
public CfgHandler(Looper looper) {
super(looper);
}
public void handleMessage(Message msg) {
switch (msg.what) {
case comm_frame.SYS_CFG_RSP_FRM:
sys_cfg_rsp sys_cfg_rsp_info;
sys_cfg_rsp_info = (sys_cfg_rsp) msg.obj;
if (sys_cfg_rsp_info.child_type == comm_frame.SYS_CFG_TYPE_ALARM) {
new AlertDialog.Builder(ctext).setTitle("完成")
.setMessage("设置成功")
.setPositiveButton("确定", null).show();
}
break;
case comm_frame.EVENT_RSP_FRM:
event_info_rsp_class event_info_rsp;
event_info_rsp = (event_info_rsp_class) msg.obj;
comm_frame.invokeLongTimeToast(event_info_rsp, ctext);
break;
}
}
}
show_alarm()是4个check_box。
请教下是不是这段代码有错误呢?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。