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