Android : How get the current Application Context in AsyncTask?

android

Solution

You can pass the whole `Activity` and the use `getApplicationContext()` inside the `AsyncTask`.

Problem

I create an application with several activities and i have an AsyncTask outside any activity which is launched at the begining of the application life. My question is how can i get the current Application Context in the Asynctask class? Thank's for your answers

Original source