public static void onPause(){
  Log.i(TAG,"Banner onPause");
  dismissDialog(dialog);
  if (timerTaskHide != null)   timerTaskHide.cancel();
  if (timerTaskShow != null)   timerTaskShow.cancel();
  Log.i(TAG,"Banner canceled");
}

public static void onPause ( ) { Log . i ( TAG , "Banner onPause" ) ; dismissDialog ( dialog ) ; if ( timerTaskHide != null ) timerTaskHide . cancel ( ) ; if ( timerTaskShow != null ) timerTaskShow . cancel ( ) ; Log . i ( TAG , "Banner canceled" ) ; }
call on pause to stop banner
