android – 无法使用谷歌条码扫描仪

前端之家收集整理的这篇文章主要介绍了android – 无法使用谷歌条码扫描仪前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我从https://github.com/googlesamples/android-vision开始尝试谷歌条码阅读器

此示例不起作用.当我选择屏幕时,它总是会检测到

“no barcode detected”

调试原因:

@H_301_15@private boolean onTap(float rawX,float rawY) { //TODO: use the tap position to select the barcode. BarcodeGraphic graphic = mGraphicOverlay.getFirstGraphic(); Barcode barcode = null; if (graphic != null) { barcode = graphic.getBarcode(); if (barcode != null) { Intent data = new Intent(); data.putExtra(BarcodeObject,barcode); setResult(CommonStatusCodes.SUCCESS,data); finish(); } else { Log.d(TAG,"barcode data is null"); } } else { Log.d(TAG,"no barcode detected"); } return barcode != null; }

图形变量始终为空

看图像:

有谁遇到过这个问题?你能告诉我怎么解决吗?
非常感谢!

最佳答案
正如@ Vietnt134已经回答的那样,Android Mobile Vision暂时被禁用.

您可以按照此主题了解是否知道某些内容
https://github.com/googlesamples/android-vision/issues/98

人们对Google非常生气.我希望他们能很快解决这个问题

猜你在找的Android相关文章