I have an activity I used a timer here and and want it to reset on user interaction changed, it is working fine, but after I reenter the Activity, onUserinteraction
method is not called when user touches the screen.
@Override
public void onUserInteraction() {
super.onUserInteraction();
// reset the timer with user interaction
if (flag == 0) {
timer.cancel();
timer.start();
}
}