Answer the question
In order to leave comments, you need to log in
Why can't the compiler recognize AndroidSheduler?
I want to work with observable in the main thread
qs
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSheduler.mainThread())
.map(cq -> cq.get(0))
.subscribe(q ->
((TextView) findViewById(R.id.title)).setText(q.getQTitle())
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question