if (mSyncTask == null) { mSyncTask = new SyncTask(); mTimer.schedule(mSyncTask, 5 * Constants.MILLIS_PER_SECOND, SYNC_INTERVAL); }
if (sSyncTask != null) sSyncTask.cancel(); sSyncTask = new SyncTask(); Offline.sTimer.schedule(sSyncTask, 5 * Constants.MILLIS_PER_SECOND, SYNC_INTERVAL);
    public OfflineMailboxManager() throws ServiceException  {        super();        // wait 5 seconds, then start to sync        if (mSyncTask == null) {            mSyncTask = new SyncTask();            mTimer.schedule(mSyncTask, 5 * Constants.MILLIS_PER_SECOND, SYNC_INTERVAL);        }    }