Should I use getApplicationContext or Activity.this in a long running AsyncTask
<p>I have a long running Async Task that sends some data to my server and then stops. The whole process may involve a few requests and response. I have to read data from database, send it and handle the response and update my database accordingly. I am using content providers to read and update data from database.</p>

<p>Now to use the Content Provider, I have to call the getContentResolver() method on context. So I am wondering of I have to use getApplicationContext or just pass the Activity.this to my methods. </p>

<p>I saw a few posts <a href="http://stackoverflow.com/questions/1026973/android-whats-the-difference-between-the-various-methods-to-get-a-context">like this</a> explaining the difference between the two and in most of them they advice us to not use getApplicationContext if possible. I although do not want my AsyncTask to lose the context from Activity.this when the Activity is destroyed or when orientation changes. So I am wondering if I can use getApplicationContext in my case or will using Activity.this fit my requirement.</p>
