public static /*synchronized*/ void StartLogoutTimer(Context context, ILogOutListener logOutListener, int logoutTime) { if (longTimer != null) { longTimer.Cancel(); longTimer = null; } /* if (longTimer == null) */ { longTimer = new Timer(); longTimer.Schedule(new LogoutTimerTask(context, logOutListener), (long)logoutTime); } }
internal LogoutTimerTask(Context context, ILogOutListener logOutListener) { this.context = context; this.logOutListener = logOutListener; }