public void handleDecode(Result obj, Bitmap barcode) { inactivityTimer.onActivity(); // viewfinderView.drawResultBitmap(barcode); playBeepSoundAndVibrate(); // txtResult.setText(obj.getBarcodeFormat().toString() + ":" + obj.getText()); Intent returnActivity = new Intent(); returnActivity.putExtra("code", obj.getText()); setResult(RESULT_OK, returnActivity); finish(); }
@Override protected void onDestroy() { inactivityTimer.shutdown(); super.onDestroy(); }