You are here

Scan mode

Extra key: 
SCAN_MODE

Provide optional scan mode.

By default, sending Scan.ACTION will decode all barcodes that we understand. However it may be useful to limit scanning to certain formats. Use Intent.putExtra(MODE, value) with one of the values below (optional).

"PRODUCT_MODE": Decode only UPC and EAN barcodes. This is the right choice for shopping apps which get prices, reviews, etc. for products.

"ONE_D_MODE": Decode only 1D barcodes (currently UPC, EAN, Code 39, and Code 128).

"QR_CODE_MODE": Decode only QR codes.

See Android Manifest and com.android.barcodes.Intents.

NOTE: The package name has changed, these are stale.