A simple and efficient QR code scanner application built for Android using Kotlin.
- Scan QR codes and barcodes
- Decode and display the content of scanned codes
- Camera integration with autofocus
- Simple and intuitive user interface
- Support for multiple code formats
- Android Studio (latest version recommended)
- Android SDK API level 21 or higher
- Kotlin 1.5+
- Gradle 7.0+
-
Clone the repository:
git clone https://github.com/username/QRcodeScanner.git cd QRcodeScanner -
Open the project in Android Studio:
- File → Open
- Select the project directory
- Wait for Gradle to sync
-
Connect an Android device or start an emulator
-
Build and run the application:
./gradlew build ./gradlew installDebug
QRcodeScanner/
├── app/ # Main application module
│ ├── src/main/java/ # Kotlin source files
│ ├── src/main/res/ # Resources (layouts, drawables, values)
│ ├── build.gradle.kts # Module build configuration
│ └── google-services.json # Firebase configuration (if applicable)
├── gradle/ # Gradle wrapper and configuration
├── build.gradle.kts # Project build configuration
└── README.md # This file
This project uses several Android libraries:
- AndroidX libraries for compatibility
- CameraX for camera functionality
- ML Kit Barcode Scanning for QR code processing
- Material Design components for UI
Check app/build.gradle.kts for the complete list of dependencies.
The application requires the following permissions:
CAMERA- To access the device's camera for scanningINTERNET- If using online services for code verification (if applicable)
These permissions are declared in the AndroidManifest.xml file.
- Launch the application on your Android device
- Point the camera at a QR code or barcode
- The app will automatically detect and decode the code
- The decoded content will be displayed on screen
- You can copy the content or share it with other apps
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to Google's ML Kit for the barcode scanning capabilities
- Material Design guidelines for the UI inspiration
- The Android developer community for continuous support