Android Zxing Intentintegrator
I've written the following code that works fine if you decide to scan a QR code (using zxing) and store it in private storage but in case you decide to cancel scanning, it crashes
Solution 1:
You need to check the resultCode
. If the scan is canceled there is no information about the barcode value. With the resultCode
you can check if the operation was successful or not.
if(resultCode == RESULT_OK) {
// scan successful
} else {
// no result
}
Post a Comment for "Android Zxing Intentintegrator"