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

Monetization methods and profit models of social products

There is a widely circulated formula in the Inter...

Zhejiang added 1 new local case and the country added 54 new imported cases!

From 0:00 to 24:00 on March 26, 31 provinces (aut...

Implanting AI engine Amap's future goal is to create a living map

At the Yunqi Conference in August this year, Alib...

Overview of Machine Learning Algorithms (with Python and R Code)

"Google's self-driving cars and robots g...

Analysis of Dianping's Membership Operation System

Because I got a high-quality free meal on Dianpin...

How to improve product stickiness and reduce user churn rate?

The Internet has entered the second half today. U...

How to operate a new product from 0 to 1!

When operating a new product, there are many thin...

Hisense Art TV 75R8K review: A disruptor of mural TVs

As an important device for home entertainment, TV...