Upload
patricia-riley
View
214
Download
0
Embed Size (px)
Citation preview
Nutri-Droid“Helping you be healthy and avoid obesity since 2014!”
Easy nutrition monitoring on your Android device!
Joseph McMahan and JingYu Zhang
麦折服 张婧予
UI Design
Search what you want to know
Everyday food listed
Enable quick search
What you have today
Calculate exercise time to reduce calories
UI Design Cont.
From Google to our App
UI Design Cont.
Common food Enable quick search
Common Food
Fruits:ApplePeachLemon
Vegetables:LettucePotatoTomato
Nuts:Almond
UI Design Cont.
Search HistoryEnable quick search
Search History
Today:ApplePeachLemon
Yesterday:LettucePotatoTomato
Last week:Almond
UI Design Cont.
Daily NutritionWhat you eat today
Daily Nutrition
Today You Have:Calories: 1200Fat: 23 gSugar: 0 g
CaloriesIntakeRemain
1200
800
UI Design Cont.
ExerciseCalculate time forexercise to lose calories
Exercise
Running:30min 400 calories
Walking:30min 200 calories
Backend
● Use screen-scraping to extract nutrition information from Internet
● Store data locally in custom format for fast offline access
● Store objects in hashtable for easy access to data for display in UI
Backend: Get Data
Backend: Get Data
Backend: Data Format
Backend: Store/Retrieve Data
Backend: Save Database
Backend
● UI passes string to search– Search locally, then on web– Return exception if none (need custom food item)
● “Eat(Food food, int amount) {...}”– Add food to day's list of consumed foods– Add nutrients from amount of food to day's nutrient
consumption
● Return list of consumed foods, day's nutrient consumption/goals, etc.