The essence of the problem is this: I have Observable and Subscriber . Observable I try to run in the io() stream, as it works with files (I will not show the code, it is quite large, but does not matter), but it does nothing:
Observable<Double> creatingObservable = getCreatingObservable(image); Subscriber<Double> creatingSubscriber = getCreatingSubscriber(); creatingObservable .subscribeOn(Schedulers.io()) .subscribe(creatingSubscriber); If you run the code without subscribeOn , everything works fine. So what is the problem and how to fix it?
PS I still have System.out.println() not working. The problem applies to all Scheduler'a threads.
getCreatingObservable. - xkorSystem.out.println()- do not use it on the android. On the android for logging it is better to use the built-in classLog, or some third-party type of Timber - xkorAndroid, out of habit. And the problem is not in the creation code, I created it through the usualcreate. And at enSO they helped solve the problem, it was incredibly banal ... - user189127