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

Can the termites flying all over the sky be fried and eaten?

The topic of Liu Genghong fighting termites durin...

Facebook advertising tips!

There seem to be many reasons why Facebook reject...

What exactly do the cool people in conspiracy theories want to do?

Coolpad is a powerful company, and China Cool All...

Traffic generation and promotion: How to find target users before promotion?

Finding target users and conducting targeted oper...

You must pay attention to these 4 points for high conversion landing pages!

We know that the composition of a bidding account...

How to guide users to create content from 0 to 1?

1. What did Lukou Community do from 0 to 1? Lukou...