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

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Dec 6, 2012 9:18:25 AM via Website

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) {
} else {
return false;
Any idea why the barcode scanner code is there?