@Override
        public void gotResult(int code, String alias, Set<String> tags) {
          String logs;
          switch (code) {
            case 0:
              logs = "Set tag and alias success";
              Log.i(TAG, logs);
              break;

            case 6002:
              logs = "Failed to set alias and tags due to timeout. Try again after 60s.";
              Log.i(TAG, logs);
              if (ExampleUtil.isConnected(getApplicationContext())) {
                mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_SET_TAGS, tags), 1000 * 60);
              } else {
                Log.i(TAG, "No network");
              }
              break;

            default:
              logs = "Failed with errorCode = " + code;
              Log.e(TAG, logs);
          }

          ExampleUtil.showToast(logs, getApplicationContext());
        }