Пример #1
0
 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();
 }
Пример #2
0
 @Override
 protected void onDestroy() {
   inactivityTimer.shutdown();
   super.onDestroy();
 }