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?
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?