src/android/src/gmvScanner/SecondaryActivity.java
/**
     * Called when an activity you launched exits, giving you the requestCode
     * you started it with, the resultCode it returned, and any additional
     * data from it.  The <var>resultCode</var> will be
     * {@link #RESULT_CANCELED} if the activity explicitly returned that,
     * didn't return any result, or crashed during its operation.
     * <p/>
     * <p>You will receive this call immediately before onResume() when your
     * activity is re-starting.
     * <p/>
     *
     * @param requestCode The integer request code originally supplied to
     *                    startActivityForResult(), allowing you to identify who this
     *                    result came from.
     * @param resultCode  The integer result code returned by the child activity
     *                    through its setResult().
     * @param data        An Intent, which can return result data to the caller
     *                    (various data can be attached to Intent "extras").
     * @see #startActivityForResult
     * @see #createPendingResult
     * @see #setResult(int)
     */
Called when an activity you launched exits, giving you the requestCode
you started it with, the resultCode it returned, and any additional
data from it.  The resultCode will be
#RESULT_CANCELED if the activity explicitly returned that,
didn't return any result, or crashed during its operation.

You will receive this call immediately before onResume() when your
activity is re-starting.

@param requestCode The integer request code originally supplied to
startActivityForResult(), allowing you to identify who this
result came from.
@param resultCode  The integer result code returned by the child activity
through its setResult().
@param data        An Intent, which can return result data to the caller
(various data can be attached to Intent "extras").
Called when an activity you launched exits giving you the requestCode you started it with the resultCode it returned and any additional data from it . The resultCode will be #RESULT_CANCELED if the activity explicitly returned that didn ' t return any result or crashed during its operation . You will receive this call immediately before onResume () when your activity is re - starting . @param requestCode The integer request code originally supplied to startActivityForResult () allowing you to identify who this result came from . @param resultCode The integer result code returned by the child activity through its setResult () . @param data An Intent which can return result data to the caller ( various data can be attached to Intent " extras " ) .
@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        Log.d(TAG, "Activity exited");
        if (requestCode == RC_BARCODE_CAPTURE) {
            Intent d = new Intent();
            if (resultCode == CommonStatusCodes.SUCCESS) {
                if (data != null) {
                    Barcode barcode = data.getParcelableExtra(BarcodeCaptureActivity.BarcodeObject);
                    d.putExtra(BarcodeObject, barcode);
                    setResult(CommonStatusCodes.SUCCESS, data);
                } else {
                    d.putExtra("err", "USER_CANCELLED");
                    setResult(CommonStatusCodes.ERROR, d);
                }
            } else {
                d.putExtra("err", "There was an error with the barcode reader.");
                setResult(CommonStatusCodes.ERROR, d);
            }
            finish();
        }
        else {
            super.onActivityResult(requestCode, resultCode, data);
        }
    }
@ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { Log . d ( TAG , "Activity exited" ) ; if ( requestCode == RC_BARCODE_CAPTURE ) { Intent d = new Intent ( ) ; if ( resultCode == CommonStatusCodes . SUCCESS ) { if ( data != null ) { Barcode barcode = data . getParcelableExtra ( BarcodeCaptureActivity . BarcodeObject ) ; d . putExtra ( BarcodeObject , barcode ) ; setResult ( CommonStatusCodes . SUCCESS , data ) ; } else { d . putExtra ( "err" , "USER_CANCELLED" ) ; setResult ( CommonStatusCodes . ERROR , d ) ; } } else { d . putExtra ( "err" , "There was an error with the barcode reader." ) ; setResult ( CommonStatusCodes . ERROR , d ) ; } finish ( ) ; } else { super . onActivityResult ( requestCode , resultCode , data ) ; } }
Called when an activity you launched exits, giving you the requestCode
 you started it with, the resultCode it returned, and any additional
 data from it.
Called when an activity you launched exits giving you the requestCode you started it with the resultCode it returned and any additional data from it .