I am stuck in a problem hope someone suggest me a solution. I am using
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
}});
method to delay some task its woking fine. But before that delay completes If I hit back its crashing because the task needs to complete is expecting the context of the activity which is already closed. Can anybody help me to solve this issue?
Thanks