I used postedDelayed method to refresh my Activity, which works fine. But the problem is that even when I press the Back button postdelayed method call back the previous act
You can use removeCallbacks(runnable) method of the handler using which you are calling postDelayed() method. For example, if you used:
removeCallbacks(runnable)
postDelayed()
mHandler.postDelayed(mRunnable, mTime)
for refreshing the activity, then use
mHandler.removeCallbacks(mRunnable)
in onPause() method of the activity.
onPause()