Having trouble with EventBus
In the 1st fragment I send a post
EventBus.getDefault().post(new TestString("123")); In the 2nd fragment I register the EventBus (in the onStart method)
EventBus.getDefault().register(this); And I define a method for reading the passed parameters (in the 2nd fragment)
@Subscribe public void onEvent(TestString event){ tx4.setText(event.getS()); } In response, I receive:
D / EventBus: No customers registered for event class com.example.user_android.a366.Model.TestString
D / EventBus: No subscribers for event class or.g.greenrobot.eventbus.NoSubscriberEvent
registercalled? And isunregister? Both fragments are created and are in the same activation? I would add logs before registering in order to make sure that it is invoked. - lllyct