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

No subscribers for service #18

Closed
frakc opened this issue Apr 15, 2016 · 1 comment
Closed

No subscribers for service #18

frakc opened this issue Apr 15, 2016 · 1 comment

Comments

@frakc
Copy link

frakc commented Apr 15, 2016

I post EventBus.getDefault().post(new SendPlayer(player)); from a services, which is running in non main thread

<service
        android:name=".player.PlayerService"
        android:process=":player"
        android:enabled="true"
        android:exported="true">
    </service>

I expect to recieve even in my fragment

  @Subscribe(threadMode = ThreadMode.MAIN) public void onEvent(SendPlayer event) {
    Log.w("mcheck", "onEvent");
  }

However, i get message D/EventBus: No subscribers registered for event class yarh.com.tryexo.player.SendPlayer. Events are delivered only if i remove android:process=":player".
Is it a bug or I misunderstud flow of posting events between bachground thread and main thread?

@frakc frakc closed this as completed Apr 15, 2016
@frakc
Copy link
Author

frakc commented Apr 15, 2016

Sorry, wrong project

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