I hate inner class.
I\'ve a main activity who launches a \'short-life\' AsyncTask.
AsyncTask is in a separate file, is not an inner class of
Just pass the context (activity or whatever) to your AsyncTask in a constructor and then in onSuccess or onProgressUpdate call whatever you need on the context.