I have a async task called within an activity:
public class DownloadFile extends AsyncTask<String, Integer, String>{
protected String doInBackground(String... url) {
Because of that there’s some things I cannot do, one of those it’s using getApplicationContext()
There’s any way to solve this problem?
Pass your application context in to the constructor