Exemplo n.º 1
0
  /** 处理扫描结果 */
  @Override
  public void handleDecode(String result) {
    LogUtil.e(TAG, "scan result=" + result);
    inactivityTimer.onActivity();
    playBeepSoundAndVibrate();

    // if (TextUtils.isEmpty(PreferencesUtil.user_company)) {
    // PreferencesUtil.initStoreData();
    // }
    // 判断订单号长度
    if (isThirdParty && scanCount % 2 == 1) {
      // How to judge whether it is right????
      mThirdOrderList.add(result);
    } else if (result.length() == PreferencesUtil.code_length) {
      barCodeScan(result);
    } else {
      QRcodeScan(result);
    }
    scanCount++;
  }
Exemplo n.º 2
0
 @Override
 public void onDestroy() {
   // ActivityStackManager.getStackManager().popActivity(this);
   inactivityTimer.shutdown();
   super.onDestroy();
 }