Use Zxing to scan the QR code, zxing
1. Integrate Zxing. bar
2. Copy the code to the project.
3. Modify the scanning result method handleDecode () of MipacActivityCapture. java ()
/*** Process the scan result and redirect the activity page * @ param Result * @ param barcode */public void handleDecode (result Result, Bitmap barcode) {inactivityTimer. onActivity (); playBeepSoundAndVibrate (); String resultString = result. getText (); if (resultString. equals ("") {Toast. makeText (MipcaActivityCapture. this, "Scan failed! ", Toast. LENGTH_SHORT ). show ();} else {Intent resultIntent = new Intent (MipcaActivityCapture. this, NewsMainActivity. class); Bundle bundle = new Bundle (); bundle. putString ("result", resultString); bundle. putParcelable ("bitmap", barcode); resultIntent. putExtras (bundle); // this. setResult (RESULT_ OK, resultIntent); startActivity (resultIntent);} MipcaActivityCapture. this. finish ();}