Пример #1
0
 public void handleDecode(Result result, Bitmap barcode) {
   inactivityTimer.onActivity();
   playBeepSoundAndVibrate();
   String resultString = result.getText();
   if (resultString.equals("")) {
     Toast.makeText(ScanBinCodeActivity.this, "Scan failed!", Toast.LENGTH_SHORT).show();
   } else {
     sendChargingRequest(resultString);
   }
 }
Пример #2
0
 @Override
 protected void onDestroy() {
   inactivityTimer.shutdown();
   super.onDestroy();
 }