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

android– 无法使用谷歌条码扫描仪,第1张

概述我从https://github.com/googlesamples/android-vision开始尝试谷歌条码阅读器此示例不起作用.当我选择屏幕时,它总是会检测到 'no barcode detected' 调试原因:private boolean onTap(float rawX, float rawY) { //TODO: use th

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

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

“no barcode detected”

调试原因:

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 – 无法使用谷歌条码扫描仪全部内容,希望文章能够帮你解决android – 无法使用谷歌条码扫描仪所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1139355.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-31
下一篇2022-05-31

发表评论

登录后才能评论

评论列表(0条)

    保存