T REASURE H UNT A PP Jon Frydman, Steven Lee, Eric Leong, HaKyung Yoon
Hunt Hint Hint 2
I NFRASTRUCTURE D ESIGN Data Request Smartphone Web Server Frameworks Languages 3
W EB S ERVER D ATABASE S TRUCTURE hun hunts ts name creator date published key Data hints hin ts hunt Request hint data Database Web Server type latitude 4 longitude
C OMMUNICATION P ROTOCOL Streamed Media Files Request Media Hunts, Hints (JSON) Request Info (HTTP GET) Smartphone Web Server 5
A NDROID A PP D ATA S TRUCTURES Lis List index 0 index 1 Hun Hunt Hunt Hun • name • name • creator • creator pubDate pubDate • • • currentHint • currentHint List Lis List Lis index 0 index 1 index 0 index 1 Hin Hint Hint Hin Hin Hint Hint Hin • hint • hint • hint • hint data data data data • • • • • type • type • type • type • location • location • location • location 6
S TORING P ROGRESS ON A NDROID (native framework) Share Sha redPr dPref eferen rence ces Key Key Val Value ue Memory Hunt Hun name • • creator • pubDate Smartphone currentHint • 7
S TORING H UNTS ON A NDROID hun hunts ts name creator date published key Data hin hints ts hunt Request hint data Smartphone Database type latitude 8 longitude
A NDROID A PP L OCATION F LOWCHART Next Hint Button Locate User GPS coordinates No Correct Location? Yes Next Hint 9
T REASURE H UNT A PP 10
A NDROID A PP C LASSES Tre Treas asure ureHu Hunt Hin Hints tsLis List Tex TextH tHint int Obser Obs erver ver Image Ima geHin Hint Obser Obs erver ver Prefe Pre feren rence ces Aud Audio ioHin Hint Hun HuntM tMana anage ger Hun Hunt Hint Hin Hin Hint HuntM Hun tMana anage ger Datab Dat abase aseTh Thread ead Hun Hunt Hint Hin Hin Hint Netwo Net workT rkThr hread ad 11
S TORING M EDIA ON A NDROID (F UTURE ) Memory Downloaded Media Files File Cache Smartphone 12
C REATING H UNTS ON A NDROID (F UTURE ) Permalink Media Files Hunts, Hints (JSON) Smartphone Web Server 13
Recommend
More recommend