Open app level adle file and add the following dependencies.I have created a new project using an Empty Activity and the first step is adding required dependencies. CameraX – For creating camera that will read QR Code.Bottom Sheet – To display the information after reading from QR Code.quickie features: Easy API for launching the QR scanner and receiving results by using the new Activity Result API. It's an alternative to ZXing based libraries and written in Kotlin. ML-Kit Barcode Scanning – To scan the QR Code quickie is a Quick Response (QR) Code scanning library for Android that is based on CameraX and ML Kit on-device barcode detection.I will be using the following things, for this project.
Now let’s build our application that can read information from a QR Code. QR Code Reader Android Kotlin Building a QR Code Reader Android App It contains black squares over a white background, and we can put some data in it that can be read by camera.īelow you can see a sample QR Code, and you can use this QR Code to test the application that you will build in this tutorial. QR Code is a type of Barcode it is a two dimensional Bar Code.