BarcodeEye/BarcodeEye — pull request #3 by paulpv (2014-01-22 06:12:35+00:00)
Title: Intent driven mechanism to return a result to the caller of startActivityForResult

This code now very closely follows the zxing Intent mechanism that exists at:
https://github.com/zxing/zxing/blob/master/android/src/com/google/zxing/client/android/CaptureActivity.java

I have successfully used this implementation w/ the following code:
Intent intentScan = new Intent("com.github.barcodeeye.SCAN");
intentScan.setPackage("com.github.barcodeeye");
intentScan.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intentScan.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
intentScan.putExtra("SCAN_MODE", "QR_CODE_MODE");
intentScan.putExtra("RESULT_DISPLAY_DURATION_MS", 1000L);
intentScan.putExtra("SAVE_HISTORY", false);
intentScan.putExtra("PROMPT_MESSAGE", "QR scan http://user:pass@server");
startActivityForResult(intentScan, REQUEST_SCAN);

If you diff this new BarcodeEye's CaptureActivity.java w/ zxing's CaptureActivity.java, you won't notice much of a difference.
The biggest difference is the already existing "mFoo" vs "foo" field names, as well as the lack of menu options and lack of some view fields.
The other differences are the package/manifest/action/intent name changes from "com.google.zxing" to "com.github.barcodeeye".
BarcodeEye also already changed "ResultHandler" to "ResultProcessor".
I also took the liberty of removing the, what appeared to be, unused mImage used in the results.

@jromero I highly recommend you fork the original zxing code and submit a push request to get zxing working on Glass.