How can I read qr code inside GDK app?

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:32:28

QR code could be obtained from bitmap using this ZXing library

To get the bitmap Glass camera intent could be used.

Acarin

This worked for me.

Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(objIntent, 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!