In my application, in MainActivity, there is a thread which works fine. But when I call another class to get data from the server I can\'t run on a thread. See code exampl
If someone's looking for an Rx based solution:
Observable.just(true) .observeOn(AndroidSchedulers.mainThread()) .subscribe(aBoolean -> { // cool stuff comes here });