This is an Android application to scan barcodes and QR codes using the device's camera. The project was developed with Jetpack Compose and the journeyapps library to facilitate code scanning.
- Continuous Code Scanning: The device's camera is used to continuously scan barcodes or QR codes.
- Camera Perission: The app requests permission to access the device's camera.
- Automatic Search: After scanning a code, the app displays a confirmation and, if the code is a URL, performs a browser search.
- Camera permission granted
- Android 5.0 (Lollipop) or higher
- Scanner Initialization: When the app is opened, the camera will automatically activate to start scanning codes.
- Code Detection: The app will continuously scan until a code is detected.
- Confirmation: After detecting a code, a pop-up will appear to confirm whether the user wants to perform a search with the code.
- Code Action: If the code is a URL, the browser will open. Otherwise, a Google search will be performed with the code.
- Clone the repository:
git clone https://github.com/your-username/codescanner.git - Open the project in Android Studio.
- Run the project on a physical device or emulator.
com.journeyapps:barcodescannerfor code scanning.androidx.activity:activity-composefor permission management and navigation.androidx.composefor UI based on Compose.
Feel free to contribute improvements or bug fixes. Submit pull requests or open issues to report problems.