Android barcode scanning app using Google ML Kit
- Show camera preview of facing back camera
- Detect ISBN barcode represented EAN-13 format on backside of books
- Display detected region and barcode value on preview screen
- Android version 6.0 or higher
- Google PlayStore is available on the device
- Support facing back camera
- Change package name to your own naming
- change package name in
AndroidManifext.xml
- change package name in
build.gradle
for App level - change directory structure and package name of java source files
- change package name in
- Enroll the package to firebase console
- Log in Firebase Console
- Add a project for this app
- Go to project preference
- Enroll application package name you named before
- Download
google-services.json
file and copy intoapp
directory
- Build and Run
- Build and install to device
- Application is launched, allow permissions
- This project use
android.hardware.camera
APIs and it is deprecated now.
If you want to enhance and to extend camera features, useandroid.hardware.camera2
. - The preview screen is locked up portrait mode.
All of orientation modes will be supported if considering preview image measure and camera resources management.