connection

Retrofit No Internet Connection

Retrofit No Internet Connection. First step to create our own calladapter is implementing call interface from retrofit. No connection the machine can’t access the internet and, as a result, it can’t communicate with the app.

NUMAN One 2.1 Design mit Spotify Connect
NUMAN One 2.1 Design mit Spotify Connect from www.youtube.com

When the user has an internet connection, retrofit will throw the converter exception to the onfailure() callback. In order to make retrofit return networkresponse when topic () api call is triggered, we need to write a custom calladapter. How can it be possible?

Continue reading…