Is there any possibility of defining a single instance of AsyncTask, rather than defining in every class ?
Or it is designed to be defined separately for each activity ?
I have 4-5 activities, each with different url to request, and for url's response, I have defined a separate class with methods to parse and populate objects as per request made.
EDIT: I made a mistake above. Actually, should I define a single class extending from AsyncTask and or define a private class inside each Activity where required ?
My apologies, I am a bit confused.
Thanks.