Retrofit or Asynctask?

Why use Background Task? By default, application code runs in the main thread. Every statement is therefore executed in sequence. If you perform a long lasting operation, the application blocks until the corresponding operation has finished.┬áTo provide a good user experience all potentially slow running operations in an Android application should run asynchronously. This can…