google andorid application
Post on 10-Nov-2014
966 Views
Preview:
DESCRIPTION
TRANSCRIPT
Team Members :
Manjunath ReddyAkshay SureshVarun Vijayvargiya
What’s our app about:
Scan a product's barcode with your phone's camera and check the central DB to verify if the user already has that product or if one of
their friends in the users friend list owns a copy of it.
Wi-Fi
HTTP Request/ Response
MySQL DB
PHP Script
HTTP Request/ Response
Architectural Overview
Enter username
Start Barcode App
Open camera and scan the barcode
If user exists
Option selected
HTTP Request to server via Wi-Fi
Server queries DB
Present in users/Friends list?
Option/ Results Display Window HTTP Request to server
via Wi-Fi
Server queries DB
Insert ISBN into DB
Present in DB?
Try Again
YESYES
Return Not Found
Workflow:
• Application provides a login interface where user types his USER ID
On clicking the submit button (and after verifying user exists), the camera preview is activated. The barcode picture is then taken and the ISBN is extracted (using ZXING).
The application provides two options,
1.To check if product already exists in your DB (you already own it!)
2.To store the product’s ISBN in your DB (for future reference)
On clicking Check DB, a search is performed in the database and the results are displayed.
In this case, the user doesn’t own this book and hence a search is performed to see if any of the users friends own this book.
Application also provides an option of adding the book to the database if a record does not previously exist for it.
How we did it
• Android SDK version 1.1• IDE used -- Eclipse Ganymede • Barcode Scan is done using the ZXING
application provided by Google• Connection to the server is done using the
packages provided by Apache.• Server Used – Apache XAMPP Lite• Database Server – MySQL 6.0• Server Side Scripting – PHP
•Central server used – Apache XAMPP Lite
•A new HTTP client object is created (HttpClient client = new DefaultHttpClient();)
•Followed by HTTP GET Request ( HttpGet request = new HttpGet(url); )
•On connection establishment, request is processed by the server.
•Server returns the appropriate output depending on whether the book is present or not in the DB.
Future plans
• Extend the functionality of this application to other products other than just books.
• Tracking book store using GPS
top related