I'm creating a web app here: ifridge.a2hosted.com
Feel free to login with:
Email: sample@test.com
Password: Password101 (case sensitive)
I am currently in the process of creating an android studio application which will have the same core functionalities.
My Situation:
As it stands the website ifridge.a2hosted.com/add_remove_item.html has 2 buttons, a 'ScanIn' and a 'ScanOut'. Once clicked, a text input box appears and waits for a 13 digit number (representing a barcode) once entered and submitted, the barcode is added to the user's database. If a user is adding an item for the first time then they are prompted to enter the product's information manually by filling out 3 text boxes.
On the app, I would like the camera to open and scan the barcode, convert it to a 13 digit number and submit it without any user interaction. I'm looking for some guidance on the best method of doing this. And how best to implement the prompt if an item is unrecognised.
EDIT: I know how to convert the barcode to a number if I was just making a standard android app. What I am unclear about is how exactly to process this number in such a way that it is processed properly by the website.
Thanks in advance for your help!