How to make an activity use retrofit get request to load json data when starting?

Viewed 20

I'm trying to get retrofit make a http call when the activity starts, so it loads the data. I also want it to be callable on refresh.

How can I achieve this without using AsyncTask?

0 Answers
Related