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);
   }
 }
 @Override
 protected void onDestroy() {
   inactivityTimer.shutdown();
   super.onDestroy();
 }