void updateActivity(){
  timeSinceLastUpdate=System.currentTimeMillis();
}

void updateActivity ( ) { timeSinceLastUpdate = System . currentTimeMillis ( ) ; }
this method prevents a manual timeout from occurring when invoked at a frequency faster than the timeout .
