How pass data between activities using RxJava in android?
问题 I need to pass some data between two activities MainActivity and ChildActivity . Button click on MainActivity should open ChildActivity and send event with data. I have singleton: Subject<Object, Object> subject = new SerializedSubject<>(PublishSubject.create()); and in MainActivity I have the following button click handler: public void onClick(){ startActivity(new Intent(MainActivity.this, ChildActivity.class)); subject.onNext(new SomeEvent(data)); } and event listener subscription in