RxJava provides a great toolbox for async data streams. This talk tries to give a introductory information to get familiar with Reactive Programming and RxJava.
by the Observable. Subscriber<String> mySubscriber = new Subscriber<String>() { @Override public void onCompleted() { } @Override public void onError(Throwable e) { } @Override public void onNext(String s) { System.out.println(s); } }; //Hook them each other with subscribe. myObservable.subscribe(mySubscriber);