@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(); }
@Override protected void onPause() { super.onPause(); scannerView.stopCamera(); }
@Override protected void onResume() { super.onResume(); scannerView.startCamera(); }
@Override public void onResume() { super.onResume(); zXingScannerView.setResultHandler(handle); zXingScannerView.startCamera(); }