使用Zxing和谷歌护目镜用我的应用程序 [英] Using Zxing and Google Goggles with my app
问题描述
我有一个应用程序,我用这个code集成zxing
I have an app, i used this code to integrate zxing
public Button.OnClickListener mScan = new Button.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, 0);
}
};
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (requestCode == 0) {
if (resultCode == RESULT_OK) {
String contents = intent.getStringExtra("SCAN_RESULT");
String format = intent.getStringExtra("SCAN_RESULT_FORMAT");
// Handle successful scan
} else if (resultCode == RESULT_CANCELED) {
// Handle cancel
}
}
我都zxing扫描仪以及安装在我的手机谷歌护目镜。当我启动应用程序,并尝试进行扫描,我可以选择任一栏code扫描仪或护目镜应用程序的选项。我想,嘿,让我们尝试并使用护目镜应用做其他的东西,以及像OCR。我选择护目镜选项,但该应用程序没有在它取图片选项。我怎么还集成护目镜与我的应用程序?全功能?
I have both zxing scanner as well as google goggles installed in my mobile phone. When i start the app and try to scan, I get the option to choose either the barcode scanner or the goggle app. I thought, hey let's try and use the goggle app for doing other stuff as well like OCR. I select the goggle option but the app does not have the take picture option within it. How do I integrate goggles also with my app? with full functionality?
推荐答案
不幸的是你不能。 Goggles会只提供相同的核心功能ZXing。我花了几个小时研究了同样的问题。
Unfortunately you can't. Goggles will only provide the same core functionality as ZXing. I've spent hours researching the same question.
这篇关于使用Zxing和谷歌护目镜用我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!