How can I read qr code inside GDK app?
问题 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? 回答1: QR code could be obtained from bitmap using this ZXing library To get the bitmap Glass camera intent could be used. 回答2: This worked for me. Intent objIntent = new Intent("com.google.zxing.client.android.SCAN"); objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE"); startActivityForResult(objIntent, 0); 回答3: You can read QR using the library located at https://code.google.com