Exemplo n.º 1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   scannerView = new ZXingScannerView(this);
   scannerView.setResultHandler(this);
   setContentView(scannerView);
 }
 @Override
 public void onPause() {
   super.onPause();
   mScannerView.stopCamera();
 }
 @Override
 public void onResume() {
   super.onResume();
   mScannerView.setResultHandler(this);
   mScannerView.startCamera();
 }
Exemplo n.º 4
0
 @Override
 protected void onPause() {
   super.onPause();
   scannerView.stopCamera();
 }
Exemplo n.º 5
0
 @Override
 protected void onResume() {
   super.onResume();
   scannerView.startCamera();
 }
 @Override
 public void onResume() {
   super.onResume();
   zXingScannerView.setResultHandler(handle);
   zXingScannerView.startCamera();
 }