I\'m stuck with a memory leak that I cannot fix. I identified where it occurs, using the MemoryAnalizer but I vainly struggle to get rid of it. Here is the code:
<
You can try below code snippet
protected void onPostExecute(Boolean result) { if(YourActivity.this.isFinished()){ //to smomething here } }