google andorid application

13
Team Members : Manjunath Reddy Akshay Suresh Varun Vijayvargiya

Upload: akshay-suresh

Post on 10-Nov-2014

966 views

Category:

Sports


0 download

DESCRIPTION

A smart phone based personalized search application that helps locate books and DVDs and also networks this data with other users.

TRANSCRIPT

Page 1: Google Andorid Application

Team Members :

Manjunath ReddyAkshay SureshVarun Vijayvargiya

Page 2: Google Andorid Application

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.

Page 3: Google Andorid Application

Wi-Fi

HTTP Request/ Response

MySQL DB

PHP Script

HTTP Request/ Response

Architectural Overview

Page 4: Google Andorid Application

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

Page 5: Google Andorid Application

Workflow:

• Application provides a login interface where user types his USER ID

Page 6: Google Andorid Application

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).

Page 7: Google Andorid Application

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)

Page 8: Google Andorid Application

On clicking Check DB, a search is performed in the database and the results are displayed.

Page 9: Google Andorid Application

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.

Page 10: Google Andorid Application

Application also provides an option of adding the book to the database if a record does not previously exist for it.

Page 11: Google Andorid Application

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

Page 12: Google Andorid Application

•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.

Page 13: Google Andorid Application

Future plans

• Extend the functionality of this application to other products other than just books.

• Tracking book store using GPS