when the activity is paused, XWalkView.onHide() and  XWalkView.pauseTimers() need to be called.