Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

Event not received in the Subscribe method #180

@felipecaldas

Description

@felipecaldas

Hi all,

First time using Otto and having some trouble getting the event to arrive at the method subscribed to it.

In Activity1, I have the line:

BusProvider.getInstance().post(mGameState);

At Activit2, I have the line:

@subscribe
public void do(MultiplayerGameState mTurnData) {
}

Obviously I am sending the same object type in the post... nothing arrived at the do() method.

Is there anything else in terms of configuration I have to do? Something in XMLs?

I have also registered the Bus in the onStart method. Have also tried in the onResume method.

Nothing worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions