android - eventbus2.4版本接收不到事件
巴扎黑
巴扎黑 2017-04-17 15:40:33
0
3
583
巴扎黑
巴扎黑

reply all(3)
巴扎黑

Subscribers may have a problem... Please try the following writing method!

public class NewMsgEvent{
    public BizNoticeBaen<RobOrderMsgBody> mBean;
}

public void onEventmainThread(NewMsgEvent event){
    if(event != null){
    //TODO  event.mBean
    }
}
PHPzhong

Where did you log out? Maybe sometimes you logged out and didn’t re-register

阿神

I really want to ask why the fonts of your two pieces of code are different. You don’t use EventBus like this in two eclipse.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template