The Response From The Retrofit Call Is Too Slow And It Returns A Null List
Getting response as null in onResponse(). How to improve time duration for response? public class RequestClass {  private static final String TAG = RequestClass.class.getSimpleName
Solution 1:
I used ReactiveX to solve the problem. Another solution was a callback from onResponse() method.
    ApiInterface apiService = ApiClient.getClient().create(ApiInterface.class);
    apiService.getTopRatedMovies(Constants.API_KEY, Constants.FIRST_PAGE)
            .subscribeOn(Schedulers.newThread())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(popularMoviesSubscriber);
Post a Comment for "The Response From The Retrofit Call Is Too Slow And It Returns A Null List"