![]() Add the ZXing library Edit app/adle and add a dependency on ZXing core library implementation ':core:3.4.0'ģ. ![]() Run the new project to ensure project setup is correctĢ. Step-by-Step Example (Android Studio 3.5)Ĭ. The code examples and a step-by-step guide for creating a new Android app that displays a 1D Code 128 barcode can be found below. The project consists of various components including an Android Barcode Scanning app, but for this blog, we just needed the core functionality. The ZXing project has been on GitHub for years, its first release was over 5 years ago and has had 27 releases and over 3.5k commits at the time of writing! Although the project is now in maintenance mode it is used by over 17k projects and has been forked over 8k times. ![]() It was originally implemented in Java but has since been ported to many other languages and has support for 1D product, 1D industrial, and 2D barcodes. ZXing is a barcode image processing library originally released in 2008 and subsequently open-sourced and now hosted on Google Open Source. I needed to create a 1D (CODE 128) barcode in an Android app and so, turned to the ZXing project for help. ![]() Most articles appear to include either larger libraries or complete sample apps, rather than simple instructions. However, it was harder to find much information about generating and displaying barcodes programmatically. There are lots of articles and help online for producing an Android app that can scan barcodes (including the excellent KBarcode library and sample app developed by my colleague Alistair).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |