This tutorial explains how to scan Bar-code or QR-code . We have many third party libraries and here we can see one among them zxing-android-embedded library How to use this Step 1: Add the dependency implementation 'com.journeyapps:zxing-android-embedded:3.5.0' Step 2 : Initialize it in your activity IntentIntegrator qbScan = new IntentIntegrator(this); Step 3: Call on button call or on any trigger qbScan.initiateScan(); For Portrait mode, in Manifest file <activity android:name="com.journeyapps.barcodescanner.CaptureActivity" android:screenOrientation="portrait" tools:replace="screenOrientation" /> _____________________________________________________________________________ Happy Coding...
Learn with Samples