In this post, we will see how to resolve My retrofit gson deserializer don’t see enum Question: Whenever I’m getting response from the server where JSON looks like that {"rights":[{"name":"stock_management","right":true}]} my retrofit uses class SimpleResponse<T> to convert it to my ...
In this post, we will see how to resolve How does the following code work on Android Question: In one of Philip Lackner’s tutorial, he is making the network call and UI changes like following: Here is the pointer to ...
In this post, we will see how to resolve Confusion about the use of Call<> and suspended functions in Android network requests with retrofit Question: After searching for answers to an error where my function fun getRestaurants(): Call couldn’t be ...
In this post, we will see how to resolve How to take retrofit response body out of the function instead of just passing it to another function? Question: How do I assign the response body to a variable outside of ...
In this post, we will see how to resolve Retrofit after adding Flow does not return values Question: Recently, I decided to learn a bit about how to write android apps. After read book and checked many codes, blogs etc. ...
In this post, we will see how to resolve Retry and circuit breaker both with retrofit 2 and resillence4j Question: I know the default order of resillence4j is Retry(CircuitBreaker(func())) …. But I am in need of something like this CircuitBreaker(Retry(func()))…. ...
Question: I’m trying to send a POST request in Retrofit for below JSON. I have sent the same request using Volley. Now I’m switching to Retrofit. How can I send the same using Retrofit? Answer: In your case you can ...
Question: I’m trying to develop an android app with my api and retrofit 2 but unfortunaly my app crush many time, and I got a message like this, java.lang.RuntimeException: Unable to start activity ComponentInfo{com.apitest.firsttry/com.apitest.firsttry.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method ...
Question: I am trying to parse JSON (https://raw.githubusercontent.com/Biuni/PokemonGO-Pokedex/master/pokedex.json) to show data in RecyclerView, but I get an error: I see that the problem is that JSON contains just 1 object (pokemon) and inside this object there is array of different ...
Question: I want to do an async-await to my Retrofit request. and when i call it from a CoroutineScope i have So the request returns 200 which means that it is successful, and i see the Logging with the File ...