Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用jar收不到消息 #44

Open
sunflowerofpq opened this issue Nov 24, 2016 · 0 comments
Open

使用jar收不到消息 #44

sunflowerofpq opened this issue Nov 24, 2016 · 0 comments

Comments

@sunflowerofpq
Copy link

你好,我用了这个版本的jar,就直接传字符串都收不到消息。在MainActivity的onCreate 中 EventBus.getDefault().register(this); 注册,onDestroy中 EventBus.getDefault().unregister(this);
在button中的点击事件发了这个 EventBus.getDefault().post(new ReceviceEvent("I am send a message"));
然后在SecondActivity 中 @subscriber(mode= ThreadMode.MAIN)
public void Message(ReceviceEvent s){
Log.e(TAG,"sting ××××××××:"+s.getMessage());
},但是却收不到消息,不知道哪出了问题。能不能帮忙解决一下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant