Пример #1
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (resultCode == Activity.RESULT_OK && requestCode == request_code_scanner) {
     String code = ZXScanHelper.getScannedCode(data);
     compareCode(code);
   }
 }
Пример #2
0
 private void doScanQRCode() {
   if (Home.instance != null) {
     Home.instance.setPause(false);
     ZXScanHelper.scan(Home.instance, request_code_scanner);
   }
 }