简体   繁体   English

Zxing条码扫描器不显示产品信息

[英]Zxing barcode scanner don't display product info

I have the zxing scan integrated into my application but the problem is that when the user scans something the projects information appears. 我将zxing扫描集成到我的应用程序中,但是问题是当用户扫描某些内容时,项目信息就会出现。 I don't want this I want the scanner after scanning to return to my application. 我不希望这样,我希望扫描后的扫描仪返回我的应用程序。

Intent intent = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);
    startActivityForResult(intent, 0);

This isn't how you launch the app by Intent, so I don't think you're even launching Barcode Scanner. 这不是您通过Intent启动应用程序的方式,因此我认为您甚至没有启动Barcode Scanner。

I think you are launching your own internal copy, which you don't need and should remove anyway. 我认为您正在启动自己的内部副本,不需要并且应该删除该副本。 The real app will respond to your Intent. 真正的应用程序将响应您的意图。

Do this: https://code.google.com/p/zxing/wiki/ScanningViaIntent 这样做: https : //code.google.com/p/zxing/wiki/ScanningViaIntent

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM