I'm currently trying to call a barcode scanner from my own Google Glass App. What I've done so far is to create a new intent which looks like this:
Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(objIntent, 0);
I always receive the following error:
no activity found to handle intent com.google.zxing.client.android.scan
Do I have to import something special? I know that there is a Glass implementation called BarcodeEye but this is actually full working glassware, isn't it?
EDIT: I'm able now to open the barcode scanner :) I've imported the current /android from the current ZXing library, added the current core-SNAPSHOT to it and marked it as a library project. In my main application I've added the /android as a library and also added the SNAPSHOT. With the following code I'm right now able to open the barcode scanner:
Intent objIntent = new
Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE",
"ONE_D_MODE,QR_CODE_MODE,PRODUCT_MODE,DATA_MATRIX_MODE");
startActivityForResult(objIntent, UPC_CODE_REQUEST);
The problem at the moment is that after a scan was successfully done the app is not jumping back to the activity from where I called the intent for the barcode. It just closes the barcode scanner and also my main application. I'm not getting any errors from the console. Maybe someone knows what's happening and why the "onActivityResult" method is not called.
Greetings Stef