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

The first product manager in the film industry was Guo Jingming

Godard, the master of the French New Wave, might ...

New research: Get cold! Is it okay to be a little cold?

It is hard to imagine that in a situation where t...

Can money really buy happiness? Scientists' research is shocking

Plato once said: "The constant goal of all h...

Tips for getting traffic from Tik Tok live streaming!

What is the essence of live streaming sales? In f...

Analysis of the Douyin app operation and promotion plan!

Short videos have become the hottest track in rec...

Social media has made advertising no longer a “one-time investment” thing!

Advertising is not as simple as finding a media o...

$200,000 for a lunch with Tim Cook

[[133526]] Beijing time, May 7 morning news, Appl...

A hornet's nest as big as a castle, do you dare to touch it?

“Poking a hornet’s nest” is a common childhood me...