I have a conceptual problem related to AsyncTask
class. We use AsyncTask
so that the main UI is not blocked.
But suppose, I want to retrieve some data
You don't get the result this way. See this link for an example : https://github.com/levinotik/ReusableAsyncTask/tree/master/src/com/example
Basically, here is what you need to do :