Skip to content

Tag: retrofit

Can I delay the onSuccess method in RxJava?

I have SplashScreenFragment and inside this fragment, I’ll load the data from the server using Retrofit with RxJava, Getting data from the server will take between 1 second to 25 seconds. The SplashScreenFragment must show to the user for at least 8 seconds. When I get the data from the server, The onSu…

Resend Retrofit API call with a OneTimeWorkRequest

I am stuck and can’t get my OneTimeWorkRequest to work properly. I have got this Retrofit API call I want to resend to the backend incase there’s no network connectivity or similar on the phone. What I can’t wrap my head around is how to pass the call to the worker. I’ve got this follo…

Android Studio Retrofit Call Failure

I’m trying to use Retrofit in my app via Java. I’m using this worldtime API. You can call this URL in your browser to see the response : http://worldtimeapi.org/api/timezone/Europe/Istanbul (response comes too late, just refresh your browser) I added this line to my AndroidManifest.xml I added the…

Retrofit Get Data Object

I have a data like this, and i want get report and criteria data. And i get data in java using retrofit. And this is my java class. GetReport.java Data.java And this how i call the data. When I run the program, my activity closes immediately. When I look at logcat, there is too much running log data so I