How can I read qr code inside GDK app?
Asked Answered
S

3

2

I want to read qr code from GDK app to get authorization token.

Is there any build in methods to read QR codes in GDK?

Sommerville answered 30/12, 2013 at 0:44 Comment(0)
S
1

QR code could be obtained from bitmap using this ZXing library

To get the bitmap Glass camera intent could be used.

Sommerville answered 30/12, 2013 at 3:24 Comment(0)
M
1

This worked for me.

Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(objIntent, 0);
Matriculation answered 2/1, 2014 at 18:47 Comment(1)
Were you able to read the QR code using ZXing library in Google glass?Surbeck
F
0

You can read QR using the library located at https://code.google.com/p/barcodefraglibv2/wiki/HowTo Have tested it to work on Glass without any problem.

Finished answered 1/6, 2014 at 3:40 Comment(1)
This is not working on the Google Glass!! You get the "Crop rectangle does not fit within image data" error. IllegalArgumentExceptionAjay

© 2022 - 2024 — McMap. All rights reserved.