Search code examples
androidkotlinbarcode-scannerean-13

Creat android barcode reader to get database information


I want to create an android app by android studio to get information from barcode such as price and name.

the thing is i am new to this so i am asking if i can make a barcode reader that scans ean-13 barcode and get price and name from database like "Open Food Facts", the exact question is how can i make the barcode reader get the price and name ? do i have to link it with some kind of data base ?

btw i am using android studio with kotlin if it helps . And this is my first topic, i don't know how things works here so if i did anything wrong please be free to point it


Solution

  • You will have to link the bar code scanner with a database if you want to retrieve the information from a given barcode.

    For instance, if you are scanning the QR code embedded in a book that has a unique ID, you will then need to have access to the database of all the books mapped with their relevant QR code ID.

    Could you share your exact use case here as that might help us understand what you're trying to do here.