/** 处理扫描结果 */ @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++; }
@Override public void onDestroy() { // ActivityStackManager.getStackManager().popActivity(this); inactivityTimer.shutdown(); super.onDestroy(); }