public static IntentResult parseActivityResult(int requestCode, int resultCode, Intent intent) {
        if (requestCode == REQUEST_CODE) {
            return parseActivityResult(resultCode, intent);
        }
        return null;
    }
<p>Call this from your {@link Activity}'s
{@link Activity#onActivityResult(int, int, Intent)} method.</p>
<p>
This checks that the requestCode is equal to the default REQUEST_CODE.

@param requestCode request code from {@code onActivityResult()}
@param resultCode  result code from {@code onActivityResult()}
@param intent      {@link Intent} from {@code onActivityResult()}
@return null if the event handled here was not related to this class, or
else an {@link IntentResult} containing the result of the scan. If the user cancelled scanning,
the fields will be null.
@deprecated Not compatible with setRequestCode(). Use parseActivityResult(resultCode, intent) instead.
zxing-android-embedded/src/com/google/zxing/integration/android/IntentIntegrator.java