@Override
        public void run() {

          try {

            Looper.prepare();
            if (isRunning && CommonFunctionMapid.isInternetOn(getBaseContext())) {
              // checking if time scheduled
              // matches current time
              syncToWebservice(); // call updates
            }

          } catch (Exception e) {
            // TODO: handle exception
            CommonFunctionMapid.displayToastshort(
                getApplicationContext(), e.getMessage(), Gravity.CENTER);
          }
        }