This is an about how to use ZXing in Android. ZXing is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.
QRCodeDemo is hosted in the following web site
https://github.com/zhaodexi/QRCodeDemo
If you think the Android project QRCodeDemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of QRCodeDemo.
Item | Value |
---|---|
Java File Count | 305 |
Supported screen sizes | [xxhdpi, hdpi, xhdpi] |
Target SDK Version | 14 |
Minimum SDK Version | 8 |
Activity Count | 10 |
jar files used | android-support-v4.jar |
Required Permissions | android.permission.ACCESS_WIFI_STATE android.permission.CAMERA android.permission.CHANGE_WIFI_STATE android.permission.FLASHLIGHT android.permission.INTERNET android.permission.READ_CONTACTS android.permission.VIBRATE android.permission.WRITE_EXTERNAL_STORAGE com.android.browser.permission.READ_HISTORY_BOOKMARKS |
Asset File Names | assets\html\apache-license.txt assets\images\big-1d.png assets\images\big-datamatrix.png assets\images\big-qr.png assets\images\contact-results-screen.jpg assets\images\demo-no.png assets\images\demo-yes.png assets\images\scan-example.png assets\images\scan-from-phone.png assets\images\search-book-contents.jpg |
Raw File Names | res\raw\beep.ogg |
There are 3 image files in QRCodeDemo. The names of the image files are listed as follows.
launcher_icon.png share_via_barcode.png shopper_icon.png
The following screenshort is generated from the image listed above.
QRCodeDemo has the following Java source files.
com.glassky.main.MainActivity.java com.google.zxing.Binarizer.java com.google.zxing.BinaryBitmap.java com.google.zxing.ChecksumException.java com.google.zxing.Dimension.java com.google.zxing.FormatException.java com.google.zxing.InvertedLuminanceSource.java com.google.zxing.LuminanceSource.java com.google.zxing.MultiFormatReader.java com.google.zxing.MultiFormatWriter.java com.google.zxing.NotFoundException.java com.google.zxing.PlanarYUVLuminanceSource.java com.google.zxing.RGBLuminanceSource.java com.google.zxing.Reader.java com.google.zxing.ReaderException.java com.google.zxing.Result.java com.google.zxing.ResultPoint.java com.google.zxing.ResultPointCallback.java com.google.zxing.Writer.java com.google.zxing.WriterException.java com.google.zxing.aztec.AztecDetectorResult.java com.google.zxing.aztec.AztecReader.java com.google.zxing.aztec.AztecWriter.java com.google.zxing.aztec.decoder.Decoder.java com.google.zxing.aztec.detector.Detector.java com.google.zxing.aztec.encoder.AztecCode.java com.google.zxing.aztec.encoder.Encoder.java com.google.zxing.client.android.CaptureActivity.java com.google.zxing.client.android.CaptureActivityHandler.java com.google.zxing.client.android.Contents.java com.google.zxing.client.android.FinishListener.java com.google.zxing.client.android.HelpActivity.java com.google.zxing.client.android.HttpHelper.java com.google.zxing.client.android.Intents.java com.google.zxing.client.android.LocaleManager.java com.google.zxing.client.android.PreferencesActivity.java com.google.zxing.client.android.ViewfinderView.java com.google.zxing.client.android.book.SearchBookContentsActivity.java com.google.zxing.client.android.book.SearchBookContentsListItem.java com.google.zxing.client.android.camera.CameraManager.java com.google.zxing.client.android.camera.exposure.DefaultExposureInterface.java com.google.zxing.client.android.camera.exposure.ExposureInterface.java com.google.zxing.client.android.camera.exposure.ExposureManager.java com.google.zxing.client.android.camera.exposure.FroyoExposureInterface.java com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface.java com.google.zxing.client.android.camera.open.OpenCameraInterface.java com.google.zxing.client.android.camera.open.OpenCameraManager.java com.google.zxing.client.android.common.PlatformSupportManager.java com.google.zxing.client.android.common.executor.AsyncTaskExecInterface.java com.google.zxing.client.android.common.executor.AsyncTaskExecManager.java com.google.zxing.client.android.common.executor.DefaultAsyncTaskExecInterface.java com.google.zxing.client.android.common.executor.HoneycombAsyncTaskExecInterface.java com.google.zxing.client.android.encode.EncodeActivity.java com.google.zxing.client.android.history.HistoryActivity.java com.google.zxing.client.android.history.HistoryItem.java com.google.zxing.client.android.history.HistoryManager.java com.google.zxing.client.android.pref.BSPlusPreference.java com.google.zxing.client.android.result.AddressBookResultHandler.java com.google.zxing.client.android.result.CalendarResultHandler.java com.google.zxing.client.android.result.EmailAddressResultHandler.java com.google.zxing.client.android.result.GeoResultHandler.java com.google.zxing.client.android.result.ISBNResultHandler.java com.google.zxing.client.android.result.ProductResultHandler.java com.google.zxing.client.android.result.ResultButtonListener.java com.google.zxing.client.android.result.ResultHandler.java com.google.zxing.client.android.result.ResultHandlerFactory.java com.google.zxing.client.android.result.SMSResultHandler.java com.google.zxing.client.android.result.TelResultHandler.java com.google.zxing.client.android.result.TextResultHandler.java com.google.zxing.client.android.result.URIResultHandler.java com.google.zxing.client.android.result.WifiResultHandler.java com.google.zxing.client.android.result.supplement.SupplementalInfoRetriever.java com.google.zxing.client.android.share.AppPickerActivity.java com.google.zxing.client.android.share.BookmarkPickerActivity.java com.google.zxing.client.android.share.ShareActivity.java com.google.zxing.client.android.wifi.WifiConfigManager.java com.google.zxing.client.result.AddressBookAUResultParser.java com.google.zxing.client.result.AddressBookDoCoMoResultParser.java com.google.zxing.client.result.AddressBookParsedResult.java com.google.zxing.client.result.BizcardResultParser.java com.google.zxing.client.result.BookmarkDoCoMoResultParser.java com.google.zxing.client.result.CalendarParsedResult.java com.google.zxing.client.result.EmailAddressParsedResult.java com.google.zxing.client.result.EmailAddressResultParser.java com.google.zxing.client.result.EmailDoCoMoResultParser.java com.google.zxing.client.result.ExpandedProductParsedResult.java com.google.zxing.client.result.ExpandedProductResultParser.java com.google.zxing.client.result.GeoParsedResult.java com.google.zxing.client.result.GeoResultParser.java com.google.zxing.client.result.ISBNParsedResult.java com.google.zxing.client.result.ISBNResultParser.java com.google.zxing.client.result.ParsedResult.java com.google.zxing.client.result.ProductParsedResult.java com.google.zxing.client.result.ProductResultParser.java com.google.zxing.client.result.ResultParser.java com.google.zxing.client.result.SMSMMSResultParser.java com.google.zxing.client.result.SMSParsedResult.java com.google.zxing.client.result.SMSTOMMSTOResultParser.java com.google.zxing.client.result.SMTPResultParser.java com.google.zxing.client.result.TelParsedResult.java com.google.zxing.client.result.TelResultParser.java com.google.zxing.client.result.TextParsedResult.java com.google.zxing.client.result.URIParsedResult.java com.google.zxing.client.result.URIResultParser.java com.google.zxing.client.result.URLTOResultParser.java com.google.zxing.client.result.VCardResultParser.java com.google.zxing.client.result.VEventResultParser.java com.google.zxing.client.result.WifiParsedResult.java com.google.zxing.client.result.WifiResultParser.java com.google.zxing.common.BitArray.java com.google.zxing.common.BitMatrix.java com.google.zxing.common.BitSource.java com.google.zxing.common.DecoderResult.java com.google.zxing.common.DefaultGridSampler.java com.google.zxing.common.DetectorResult.java com.google.zxing.common.GlobalHistogramBinarizer.java com.google.zxing.common.GridSampler.java com.google.zxing.common.HybridBinarizer.java com.google.zxing.common.PerspectiveTransform.java com.google.zxing.common.StringUtils.java com.google.zxing.common.detector.MathUtils.java com.google.zxing.common.detector.MonochromeRectangleDetector.java com.google.zxing.common.detector.WhiteRectangleDetector.java com.google.zxing.common.reedsolomon.GenericGF.java com.google.zxing.common.reedsolomon.ReedSolomonDecoder.java com.google.zxing.common.reedsolomon.ReedSolomonEncoder.java com.google.zxing.common.reedsolomon.ReedSolomonException.java com.google.zxing.datamatrix.DataMatrixReader.java com.google.zxing.datamatrix.DataMatrixWriter.java com.google.zxing.datamatrix.decoder.Decoder.java com.google.zxing.datamatrix.decoder.Version.java com.google.zxing.datamatrix.detector.Detector.java com.google.zxing.datamatrix.encoder.DefaultPlacement.java com.google.zxing.datamatrix.encoder.ErrorCorrection.java com.google.zxing.datamatrix.encoder.HighLevelEncoder.java com.google.zxing.datamatrix.encoder.SymbolInfo.java com.google.zxing.maxicode.MaxiCodeReader.java com.google.zxing.maxicode.decoder.Decoder.java com.google.zxing.multi.ByQuadrantReader.java com.google.zxing.multi.GenericMultipleBarcodeReader.java com.google.zxing.multi.MultipleBarcodeReader.java com.google.zxing.multi.qrcode.QRCodeMultiReader.java com.google.zxing.multi.qrcode.detector.MultiDetector.java com.google.zxing.oned.CodaBarReader.java com.google.zxing.oned.CodaBarWriter.java com.google.zxing.oned.Code128Reader.java com.google.zxing.oned.Code128Writer.java com.google.zxing.oned.Code39Reader.java com.google.zxing.oned.Code39Writer.java com.google.zxing.oned.Code93Reader.java com.google.zxing.oned.EAN13Reader.java com.google.zxing.oned.EAN13Writer.java com.google.zxing.oned.EAN8Reader.java com.google.zxing.oned.EAN8Writer.java com.google.zxing.oned.ITFReader.java com.google.zxing.oned.ITFWriter.java com.google.zxing.oned.MultiFormatOneDReader.java com.google.zxing.oned.MultiFormatUPCEANReader.java com.google.zxing.oned.OneDReader.java com.google.zxing.oned.OneDimensionalCodeWriter.java com.google.zxing.oned.UPCAReader.java com.google.zxing.oned.UPCAWriter.java com.google.zxing.oned.UPCEANReader.java com.google.zxing.oned.UPCEANWriter.java com.google.zxing.oned.UPCEReader.java com.google.zxing.oned.rss.AbstractRSSReader.java com.google.zxing.oned.rss.DataCharacter.java com.google.zxing.oned.rss.FinderPattern.java com.google.zxing.oned.rss.RSS14Reader.java com.google.zxing.oned.rss.RSSUtils.java com.google.zxing.oned.rss.expanded.RSSExpandedReader.java com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder.java com.google.zxing.pdf417.PDF417Common.java com.google.zxing.pdf417.PDF417Reader.java com.google.zxing.pdf417.PDF417ResultMetadata.java com.google.zxing.pdf417.PDF417Writer.java com.google.zxing.pdf417.decoder.PDF417ScanningDecoder.java com.google.zxing.pdf417.decoder.ec.ErrorCorrection.java com.google.zxing.pdf417.decoder.ec.ModulusGF.java com.google.zxing.pdf417.detector.Detector.java com.google.zxing.pdf417.detector.PDF417DetectorResult.java com.google.zxing.pdf417.encoder.BarcodeMatrix.java com.google.zxing.pdf417.encoder.Dimensions.java com.google.zxing.pdf417.encoder.PDF417.java com.google.zxing.qrcode.QRCodeReader.java com.google.zxing.qrcode.QRCodeWriter.java com.google.zxing.qrcode.decoder.Decoder.java com.google.zxing.qrcode.decoder.Version.java com.google.zxing.qrcode.detector.AlignmentPattern.java com.google.zxing.qrcode.detector.Detector.java com.google.zxing.qrcode.detector.FinderPattern.java com.google.zxing.qrcode.detector.FinderPatternFinder.java com.google.zxing.qrcode.detector.FinderPatternInfo.java com.google.zxing.qrcode.encoder.ByteMatrix.java com.google.zxing.qrcode.encoder.Encoder.java com.google.zxing.qrcode.encoder.QRCode.java