Android Forum » Android Developer Forum » Android Developer Forum » Why the barcode scanner code being used in google cloud print integration code?

Why the barcode scanner code being used in google cloud print integration code?

Why the barcode scanner code being used in google cloud print integration code?
created on Dec 6, 2012 9:18:25 AM
The Google cloud print integration code at Android Integration docs of cloud print uses the zxing barcode scanner code as well. Please refer:

public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.startsWith(ZXING_URL)) {
Intent intentScan = new Intent("com.google.zxing.client.android.SCAN");
intentScan.putExtra("SCAN_MODE", "QR_CODE_MODE");
try {
startActivityForResult(intentScan, ZXING_SCAN_REQUEST);
} catch (ActivityNotFoundException error) {
view.loadUrl(url);
}
} else {
view.loadUrl(url);
}
return false;
}
Any idea why the barcode scanner code is there?
Reply with quote Reply Link ±0     (0 votes)