add judge to onResume of Activity