I have AsyncTask and the doInBackground method inside which, I sending POST request using Retrofit. My code looks like:
//method of AsyncTask
protected B
"Retrofit sending request asynchronously" which as @Tanis.7x mentioned, enqueue() is doing the asynchronous, so what could be a reason to put in AsyncTask ? (async in async ?)
You can simply put all retrofit code out from AsyncTask and onResponse
is the callback that is waiting for your request call to be back, so you can do any UI update inside of this callback.