Scan QR code barcode

Scan QR code barcode

Source code introduction: Scan QR code barcode, simple and practical, worth learning from

Source code effect:

Source code snippet:

  1. /**
  2. * Process the scan results
  3. * @param result
  4. * @param barcode
  5. */  
  6. public   void handleDecode(Result result, Bitmap barcode) {
  7. inactivityTimer.onActivity();
  8. playBeepSoundAndVibrate();
  9. String resultString = result.getText();
  10. if (resultString.equals( "" )) {
  11. Toast.makeText(MipcaActivityCapture. this , "Scan failed!" , Toast.LENGTH_SHORT).show();
  12. } else {
  13. Intent resultIntent = new Intent();
  14. Bundle bundle = new Bundle();
  15. bundle.putString( "result" , resultString);
  16. bundle.putParcelable( "bitmap" , barcode);
  17. resultIntent.putExtras(bundle);
  18. this .setResult(RESULT_OK, resultIntent);
  19. }
  20. MipcaActivityCapture. this .finish();
  21. }

Download address: http://download..com/data/2111749

<<:  Audio

>>:  High imitation Baidu Nuomi

Recommend

Tik Tok marketing and promotion, 6 steps to make money with Tik Tok account!

Now many brand companies have realized the huge m...

In 2021, many websites will stop working on older versions of Android

Certificate authority Let's Encrypt has warne...

Tips and algorithms for creating popular short videos!

01 Changes in the communication model: from manua...

Investment and Financing Analyst Training Class (Level-I) CIFA System Course

Investment and Financing Analyst Training Class (...

Looks like a little "towboy", but it turns out to be a Devonian coral

When the weather is hot, I can't help missing...

Baijiahao operation skills, teach you how to quickly pass the novice period?

Baijiahao operation skills. Baijiahao has a novic...

Charm Academy "Top Wealth Thinking"

Charm Academy "Top Wealth Thinking" Res...