LuminanceSource source = new BufferedImageLuminanceSource(bufferedImage);
BinaryBitmap bitmap = new BinaryBitmap(new GlobalHistogramBinarizer(source));
Reader mReader = new MultiFormatReader();
GenericMultipleBarcodeReader reader = new GenericMultipleBarcodeReader(mReader);
results = reader.decodeMultiple(bitmap, hints);
I am using above code.
And both are scanning from any android app but not through the java application and also not from the online zxing decoder.