Team Members :
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.
HTTP Request/ Response
Start Barcode App
Open camera and
scan the barcode
HTTP Request to server Display Window HTTP Request to server
via Wi-Fi via Wi-Fi
Server queries DB
Server queries DB Option
Present in users/ Present in DB?
Return Not YES
Insert ISBN into DB
• Application provides
a login interface
where user types his
On clicking the submit
button (and after
verifying user exists),
the camera preview is
barcode picture is
then taken and the
ISBN is extracted
2.To check if product
already exists in
your DB (you
already own it!)
3.To store the
product’s ISBN in
your DB (for future
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 =
•Followed by HTTP GET Request ( HttpGet request = new
•On connection establishment, request is processed by the
•Server returns the appropriate output depending on
whether the book is present or not in the DB.
• Extend the functionality of this application
to other products other than just books.
• Tracking book store using GPS