Skip to main content

All Questions

Tagged with
0 votes
1 answer
517 views

How do I get a data from a Retrofit onResponse

I want to get an ArrayList<ItemList> from my Retrofit Callback and save it in as a ArrayList variable in my class. In other word I need to use data from retrofitList even when I leave the ...
user3503234's user avatar
0 votes
2 answers
2k views

Java : Android : Retrofit 2 response code is 200, response.body is null

I am trying to build an Android App that implements a Collaborative Filtering Algorithm using Retrofit 2,Realm and The Movie Database API. When making my Retrofit callback, onResponse returns a ...
sobek's user avatar
  • 1
0 votes
1 answer
2k views

Getting onFailure Response in Callback Android Studio

I'm trying to get a List from my server as I've done in other classes and it works. But now I'm getting an error in this Callback. Always goes to onFailure I test with postman and the server returns ...
munozloisivan's user avatar
0 votes
1 answer
1k views

Retrofit 1.9 How to start new Activity from Callback

I have simply questions , I think is simply :) I can't start new Activity from my CallBack method in Retrofit , I'm getting issue like " android.util.AndroidRuntimeException: Calling startActivity()...
Bartosz Bunzlau's user avatar
0 votes
1 answer
607 views

Retrofit 1.9 Error on Callback

I am getting the following error when trying to run my Retrofit GET call and the error occurs on the callback: E/roboguice: Throwable caught during background processing java.lang....
Keeano's user avatar
  • 309
8 votes
0 answers
870 views

App crashing when using Retrofit callback in debug mode

My app is crashing when I try to debug it, but runs fine in run mode. I looked at the stack trace and I know this is happening due to the callback code. Any ideas why the app is crashing only in ...
cutcut's user avatar
  • 83
-3 votes
4 answers
580 views

java.lang.IndexOutOfBoundsException: Invalid index 500, size is 1 while using retrofit callback inside for loop

I am trying to fetch data from api using retrofit and use ArrayList to store data, size of ArrayList is 500 after fetching data from api. On trying to log the items from ArrayList my app crash and I ...
Sachin Rana's user avatar
1 vote
2 answers
401 views

Scope issues in Android using Retrofit

I have an issue with the scope of a variable in Android using Retrofit: In the MainActivity I use Retrofit to get the JSON reply into a POJO (ApiResponse), create a extendedJourney Object and add it ...
Enrique Saez's user avatar
  • 2,652
0 votes
1 answer
453 views

Getting NullPointerException in OnResume() using Retrofit

We are trying to read a JSON file from a server and display it on our Android app using the Retrofit GET function. We based our code on a existing and working Android app, but instead of an Activity, ...
Edito's user avatar
  • 3,508
3 votes
2 answers
2k views

Receiving custom parameter in retrofit callback

This is my post : @POST("/path") @FormUrlEncoded void postIt(@Field("id") String id , Callback<Response> response); and this is the Callback: private Callback<Response> ...
user avatar