Im using listeners as callbacks to observe asynchronous operations with Android, but I think that could be great replacing this listeners with RxJava, Im new using this libr
Maybe.create(new MaybeOnSubscribe() { @Override public void subscribe(MaybeEmitter e) throws Exception { OnSuccessListener(uri->{ e.onSuccess(uri)); }) .addOnFailureListener(throwable -> { e.onError(throwable); }); } });