tinybus icon indicating copy to clipboard operation
tinybus copied to clipboard

Can support for activity post to another activity like eventbus?

Open xiaomeixw opened this issue 9 years ago • 2 comments

RT,Use TinyBus but can not receive event in another activity, is my code mistake or tinybus do not support for "post to another activity like eventbus"?

xiaomeixw avatar Jan 06 '16 06:01 xiaomeixw

+1

raviteja06 avatar Feb 29 '16 19:02 raviteja06

@xiaomeixw @raviteja06

I think you need to make sure you use the Application Context.

TinyBus bus = TinyBus.from(getActivity()
            .getApplicationContext());

See the bottom of this page: https://github.com/beworker/tinybus/wiki/Getting-Started

intrications avatar Jul 11 '16 08:07 intrications