In my application, I'm having an AsyncTask that uploads some data to the server and interacts with the calling activity using an interface "FetchCompleteListener " that I wrote.
The calling activity implements a FetchCompleteListener and passes its own instace to the AsyncTask.
The given AsyncTask calls FetchCOmpleetListener's onFetchCoMplete in onPostExecute()
My question is - what happens in the following scenarios:
- When the given activity is in stopped state
- When the given activity is finished/destroyed?
Is this a case of memory leak? Will my application crash when I try to call onFetchComplete in onPostExecute()?