I\'m having a problem with a listener in a certain activity.
The problem is that this listener contains an alert.show(); which can be called after we try to push a
If you do not want to show alert dialog or other operation after you close your activity then use this code. it works 100% accurately.
if(!(DownloadVideoActivity.this.isDestroyed())) { //show alert dialog or other things }