question

ramya avatar image
ramya asked ramya commented

How to enable 2D barcode scanning using intents?

Hi,

We have to allow 2D barcode scanning in our app, Can you please tell me which intent we have to use. In register app 2D barcode scanner working fine.

This is the code we are using

Bundle extras = new Bundle();
extras.putBoolean(Intents.EXTRA_LED_ON, false);
extras.putBoolean(Intents.EXTRA_SCAN_1D_CODE, true);
extras.putBoolean(Intents.EXTRA_SHOW_PREVIEW, false);
mBarcodeScanner.executeStartScan(extras);


Thank you.

Clover Android SDKIntentsbarcode scanner
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
superdave avatar image
superdave answered ramya commented

You can set the following Intent to true:

EXTRA_SCAN_QR_CODE

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ramya avatar image ramya commented ·

Hi Superdave,

Added

extras.putBoolean(Intents.EXTRA_SCAN_QR_CODE, true);

but still scan doesn't work.

scanner.jpg

Can you please check it. Have attached scanner image.

Thank you.

0 Likes 0 ·
scanner.jpg (271.7 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community