Top Banner
Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng
28

Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Dec 23, 2015

Download

Documents

Nigel Fletcher
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Food Phone Application

Shengyu LiCS-298

Advisor: Dr. Chris Pollett

Committee members: Dr. Robert Chun

Dr. Chris Tseng

Page 2: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Outline

Introduction Design Implementation Testing Demo Issues Improvement

Page 3: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Introduction

For this project, I created a Food Phone Application. Some goals were to: Help users to preview restaurant menus Search restaurants by food items Find these things conveniently on the phone

Let’s look at some existing products …

Page 4: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Existing Products

Yelp on Android

Page 5: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Existing Products

UrbanSpoon iPhone Application

Page 6: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Existing Products

iCrave in Android

Page 7: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Feature Comparison

Phone Application Review Ratings

User-friendly Phone UI

Actual Price

Search for Individual Food

Upload Pictures Menu

Yelp Yes Yes Yes No Some Yes No

Urbanspoon Yes Yes No No No No NoiCrave Yes Yes No Yes Yes No No

My Food Phone Application Yes Yes Yes Yes Yes Yes Yes

Page 8: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Design

Platform Architecture Application Design Implementation Design

Page 9: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Platform

Android vs. iPhone

  Android iPhone

Open OS source

Yes No

Dev SDK Free $100+

Platform Cross platform MAC only

LanguageJava, bridges exist from J2ME, C#, etc

Objective-C

Programming InterpretersObjective-C byte code only

Install SoftwaresAny web sites Apple store only

Page 10: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Architecture

Client-Server Model Server (PC) Client (Phone) Database

Page 11: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Architecture Server + Database:

PC Services

PHP code Xampp

phpMyAdmin 2.6.2 Apache 2.0 Mysql 4.1.20

Client: Android Phone Configuration

Eclipse IDE JDK 1.5 Android SDK 1.5

PhoneClient

Server

Computer Client

Page 12: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Application Design

Map all possible Outputs to all possible Inputs to define functions: a) = 1), 2), 5)

Outputs: Inputs:

a)Location 1)Users’ Location

b)Menu 2)Search Range

c)Rating for Food 3)Rating for food

d)Restaurant Name 4)Food Name

e)Food Price 5)Restaurant Name

f)Food Comment 6)Food Price

g)Picture 7)Food Comment

h)Phone Number 8)Picture

Page 13: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Activity Relationship

Android Views

Page 14: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Implementation Design Implementation Model:

Page 15: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Implementation Design PHP Module

Communicate with the database Handle upload and download files

Java Core Module Generate URL to send request to PHP server Parse the response result from the server Form Java objects for the Android Java code to

use

Page 16: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Implementation Design Android Java Module

Handle all UI Phone features

Location Camera Internet

Phone storage Pictures

Page 17: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Testing

PHP Module Java Core Module Android Java Module

Emulator Real Phone

Page 18: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Testing

PHP Module getResList(double LatMax, double LatMin, double LongMax, double

LongMin, int str, int end)

 

We can test this function on the PHP server side by using the following URL:

 http://rome.dynamiccreation.com/~admin22:8888/foodserver.php?function=getResList&LatMax=38&LatMin=37.3&LongMax=-121&LongMin=-122&str=0&end=2

Page 19: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Testing

PHP Module

Page 20: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Testing

Java Core Module

Page 21: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Testing

Android Java Module

Page 22: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Demo

Page 23: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Issues

Emulator Functionality test Camera Location Storage

Page 24: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Issues

Stored ProcedureOriginal Design:

4 modules

1. Stored Procedure Module 2. PHP Module

3. Java Core

4. Android Java

Page 25: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Improvement

Image Storage SD Card? Memory

Page 26: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Improvement

Prefetching Assume users want to see

the next picture Prefetching the next picture

ahead of time Shorter user waiting

download time for the next picture

Smooth the process

Page 27: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Questions?

Page 28: Food Phone Application Shengyu Li CS-298 Advisor: Dr. Chris Pollett Committee members: Dr. Robert Chun Dr. Chris Tseng.

Thank You