8/12/2019 Mid Term Document
1/26
HOTEL DIRECTORY APPLICATION
School of Information Sciences (SOIS)
Manipal University, Manipal
Hotel Directory Application
Tonse Technologies
Shruthi S
121021071
M.Sc. Tech Embedded Systems
P!"#ect St$!t D$te% 01&0'&201(
M"h$).*+m$!., Ms.*ee!th$)$ SAss-st$)t P!"ess"! Ass-st$)t P!"ess"!
Sch""/ " I)"!m$t-") Sc-e)ces Sch""/ " I)"!m$t-") Sc-e)ces
M$)-$/ )-e!s-ty3M$)-$/ M$)-$/ )-e!s-ty3 M$)-$/
School Of Information Sciences, Manipal
8/12/2019 Mid Term Document
2/26
HOTEL DIRECTORY APPLICATION
T$b/e " C")te)ts
A4STRACT....................................................................................................................... 2
1. I)t!"d+ct-") ................................................................................................................... (
2. A)d!"-d...........................................................................................................................5
2.1 6h$t -s $)d!"-d............................................................................................................ 5
2.2 H-h/-hts " A)d!"-d...................................................................................................5
2.( A!ch-tect+!e.................................................................................................................. 5
2.5 6hy A)d!"-d -s bette!8 ............................................................................................... 9
2.9 A/-c$t-") C"m")e)ts..............................................................................................7
2.: The A)d!"-d M$)-est -/e .......................................................................................... '
(. Ph $)d 6$m.............................................................................................................. 105. Re;+-!eme)t A)$/ys-s................................................................................................... 12
5.1 Re;+-!eme)t Sec--$ct-").......................................................................................... 12
5.1.1 ............................................................................................................... 25
7. 4-b/-"!$hy................................................................................................................... 29
School of Information Sciences, Manipal Pae 2
8/12/2019 Mid Term Document
3/26
HOTEL DIRECTORY APPLICATION
A!ST"A#T
The !"cess " -)d-) the -)est h"te/ -) ce)t!$/ /"c$t-") -s t-me c")s+m-)3
-)"!m$t-") "e!/"$d $)d "e!=he/m-) $)d -) s"me c$ses "ses $ sec+!-ty !-s> t"
the c/-e)t. Oe! t-me =-th c"met-t-") -) the m$!>et $m") t!$e/ $e)ts $)d h"te/s3
the !"cess " h"te/ se$!ch $)d b"">-) h$s -m!"ed =-th the $d$)ces -)
tech)"/"y. ?$!-"+s =eb s-tes $//"= $ +se! t" se/ect $ dest-)$t-") !"m $ +//@d"=)
/-st $/") =-th see!$/ c$te"!-es t" s+-t ")es !ee!e)ce. S"me " the m"!e
$d$)ced =eb s-tes $//"= "! $ se$!ch " the dest-)$t-") -$ $ m$ "! eB$m/e
h"te/+-de.c"m $)d #$m$-c$.h"te/s.h+. Rece)t/y ""d $m"+)t " ="!> bee) c$!!-ed
-) the +se " I)te//-e)t $e)ts t"=$!ds h"te/ se$!ch ") ,2ME b$sed m"b-/e h$)dset
=h-ch st-// h$s s"me =e$>)ess.The !""sed system s" dee/"ed st"!es the h"te/ -)"!m$t-") -) the
d$t$b$se +s-) MySL $)d h $)d the se$!ch the /"c$t-") " the h"te/ +s-)
""/e m$ b$sed ") c!-te!-$ se/ected by the +se! $)d !et+!) !es+/ts t" the c/-e)t.
Th-s =-// be $c-/-t$ted ") A)d!"-d 2.2@e)$b/ed m"b-/e h")e +s-) ""/e M$.
School of Information Sciences, Manipal Pae 3
8/12/2019 Mid Term Document
4/26
HOTEL DIRECTORY APPLICATION
$ I%T"ODU#TIO%
I) !ece)t ye$!s m$)>-)d h$s =-t)essed $ !e"/+t-") -) the sm$!t h")e -)d+st!y $)d
eme!-) !"=th -) the +s$e " m"b-/e $/-c$t-")s th$t !$)e !"m e)te!t$-)me)t $)d
ed+c$t-")$/ $s t" s-m/e $mes3 he$/th c$!e $s $)d m"!e.
The A)d!"-d /$t"!m $s $!t " the m"st =-de/y +sed "e!$t-) systems ") sm$!t
h")es $)d h$)d he/d t$b/et de-ces -s -m"!t$)t t$!et "! m"b-/e $/-c$t-") dee/"e!s
$)d h$!d=$!e m$)+$ct+!e!s.
T$>-) -) t" $cc"+)t3 the b-est m$!>et sh$!e $)d =-de "+/$!-ty " the $)d!"-d
OS $/s" m$>es the /$t"!m the best ch"-ce !"m b+s-)ess $)d !ese$!ch e!sect-es.
A)d!"-d OS -s =-de/y de@/"yed -) d-e!e)t h$)dsets $)d t$b/ets $!"+)d the /"be.
H"te/ D-!ect"!y A/-c$t-") -s $) A)d!"-d $/-c$t-") th$t he/s the +se!s t" -)d theh"te/s $cc"!d-) t" the-! !e;+-!eme)ts. The m$-) $-m " the !"#ect -s t" !"-de the +se!s $)
e$sy t" +se $/-c$t-") th$t he/s them t" -)d h"te/s /"c$t-") $cc"!d-) t" the-! c")e)-e)ce.
The $dm-) $/s" e)te! the det$-/s " the h"te/s -) the d$t$b$se +s-) h $)d MySL. The
""/e M$s API sh"=s the h"te/ !ese)t -) the c+!!e)t c-ty $)d $/s" the !"+te t" the h"te/ =-th
$// -)"!m$t-").
School of Information Sciences, Manipal Pae 4
8/12/2019 Mid Term Document
5/26
HOTEL DIRECTORY APPLICATION
& A%D"OID
&$ 'hat is anroi
A)d!"-d -s b$s-c$//y $) "e!$t-) system "! sm$!th")es. 4+t =e -)d )"= -)te!$ted -)t"
PDAs3 t"+ch $ds "! te/e-s-")s3 ee) c$!s t!- c"m+te!F "! )etb"">s. The OS =$s
c!e$ted by the st$!t@+ " the s$me )$me3 =h-ch -s "=)ed by ""/e s-)ce 2009 .
&& Highlights of Anroi
e +se " the c"m")e)t $s )eeded3 " c"+!se3 the $/-c$t-") h$s !e/e$sed the e!m-ss-")
th$t "the! $/-c$t-")s c$) +se -t. I) ,2ME S+) 20103 ")e $/-c$t-") -m/eme)ts m"st
+)ct-")$/-t-es -) $ s-)/e m-d/et eBte)d-) !"m Midlet b$se c/$ss b+t A)d!"-d c")t$-)s
d-e!e)t c"m")e)ts tyes " Act--ty3 Se!-ce3 C")te)t P!"-de!3 4!"$dc$st Rece-e! -) ")e
$/-c$t-") $)d they c$) c"mm+)-c$te th!"+h se)d-) -)te)t mess$e3 ,2ME -s )"t e$sy $s
A)d!"-d t" =!-te m"d+/$! c"de. Th-!d/y3 A)d!"-d c$) be )$t-e $ccess t" ""/e m$
-)!$st!+ct+!e. A)d -t s+"!ts PS /"c$/-J$t-"). c$) ="!> -) the =$y "
4/+et""th3 ( "! 6-@e!)e/3 =h$t me$)s th$t $// system +)ct-")s $)d d!-e!s $!e !"+ed -)t" ")e b/"c> "
c"de.
A)d!"-d c")s-sts " -e /$ye!s%
The L-)+B >e!)e/ 2.: =h-ch -)c/+des +se+/ d!-e!s th$t $//"= "! eB$m/e 6-
8/12/2019 Mid Term Document
6/26
HOTEL DIRECTORY APPLICATION
A !+)t-me e)-!")me)t "! $/-c$t-")s b$sed ") $ -!t+$/ m$ch-)e3 m$de "!
-)e-c-e)t m$ch-)es s+ch $s te/eh")es. The $-m -s t" t!$)s/$te ,A?A -) m$ch-)e
/$)+$e +)de!st""d by A)d!"-d.
A ,A?A !$me="!> th$t $//"=s $/-c$t-")s !+))-) ") the -!t+$/ m$ch-)e t"
"!$)-Je $)d c""e!$te.
The +se! $/-c$t-")s =!-tte) -) ,$$ 6eb b!"=se!3 c")t$ct m$)$e! etc...F
The inu- .ernel
Th-s -s $!t " the /$ye! th$t -s !es")s-b/e "! se!-ces /->e mem"!y $)d !"cess
m$)$eme)t3 sec+!-ty3 )et="!> st$c>3 th!e$d-)3 c$me!$3 $)d $+d-" d!-e!s $)d m"!e. It -s
$/s" !ee!!ed $s $) $bst!$ct-") /$ye! bet=ee) the h$!d=$!e $)d !est " the s"t=$!e st$c>.
A)d!"-d +ses L-)+B 2.: e!s-") "! h$)d/-) the $b"e me)t-")ed !"cesses.
School of Information Sciences, Manipal Pae 6
8/12/2019 Mid Term Document
7/26
HOTEL DIRECTORY APPLICATION
Anroi "untime
The D$/-> ?-!t+$/ m$ch-)e $)d $ set " c"!e /-b!$!-es th$t h$)d/e d-e!e)t +)ct-")$/-t-es
"+)d -) c"!e #$$ /-b!$!-es -s -)c/+ded -) th-s /$ye!. E$ch $)d!"-d $/-c$t-") !+)s
se$!$te/y ") -ts "=) D$/-> -!t+$/ m$ch-)e -)st$)ce. The D$/-> ?-!t+$/ M$ch-)e -s $
!e-ste! b$sed $!ch-tect+!e th$t -s des-)ed "! systems th$t $!e c")st!$-)ed -) te!ms "
mem"!y $)d !"cess"! seed.
#urrent /ersion
T"d$y $)d!"-d -s -) -ts 9th e!s-")3 A)d!"-d 2.1. E$ch e!s-") -s des-)ed t" !$d+$//y
c"!!ect the /$c> " APIs3 t" e)h$)ce the +se! -)te!$ce $)d $dd +)ct-")$/-ty. The /$test
e!s-") $dds s+ch th-)s $s s+"!t -) HTML9 -) the b!"=se!3 -t $//"=s m+/t-t"+ch "! -t
b!-)s )e= C")t$ct API3 =h-ch de-)es $ d$t$b$se "! c")t$ct m$)$eme)t.
&0 'hy Anroi is 1etter
Applications
"/e $/-c$t-")s
A)d!"-d -)c/+des m"st " the t-me m$)y ""/e $/-c$t-")s /->e m$-/3 Y"+T+be "!
M$s. These $/-c$t-")s $!e de/-e!ed =-th the m$ch-)e m"st " the t-me3 eBcet -) ce!t$-)
c$ses3 s+ch $s s"me h")es !+))-) $)d!"-d ") =h-ch the !"-de! h$s !e/$ced ""/e
$/-c$t-")s by -ts "=) $/-c$t-")s.
6-dets
6-th $)d!"-d3 -t -s "ss-b/e t" +se =-dets =h-ch $!e sm$// t""/s th$t c$) m"st "te) et
-)"!m$t-"). These =-dets $!e d-!ect/y -s-b/e ") the m$-) =-)d"=.
A)d!"-d M$!>et
Th-s -s $) ")/-)e s"t=$!e st"!e t" b+y $/-c$t-")s. Dee/"e!s =h" c!e$ted $/-c$t-")s
c$) $dd them -)t" the st"!e3 $)d these $/-c$t-")s c$) be d"=)/"$ded by +se!s3 they c$) be
b"th !ee $)d $-d.
Multitas2ing
A)d!"-d $//"=s m+/t-t$s>-) -) the se)se th$t m+/t-/e $/-c$t-")s c$) !+) s-m+/t$)e"+s/y.
School of Information Sciences, Manipal Pae 7
8/12/2019 Mid Term Document
8/26
HOTEL DIRECTORY APPLICATION
6-th T$s> M$)$e! -t -s "ss-b/e -e= $// !+))-) t$s>s $)d t" s=-tch !"m ")e t" $)"the!
e$s-/y.
SD.
A dee/"me)t >-t h$s bee) +t $t d-s"s$/ " ee!yb"dy. Acc"!d-)/y3 $)y dee/"e! c$)
c!e$te the-! "=) $/-c$t-")s3 "! ch$)e the $)d!"-d /$t"!m. Th-s >-t c")t$-)s $ set "
/-b!$!-es3 "=e!+/ t""/s "! deb+-) $)d dee/"me)t3 $ h")e em+/$t"!3 th"!"+h
d"c+me)t$t-")3 /->e -e= de-)-t-") -) =-)d"= m"b-/e =h-ch !ese)ts $
-s+$/ -)te!$ce t" +se!. E$ch $ct--ty -s -)dee)de)t3 dee/"e! c!e$te h-s&he! "=) $ct--ty
by s+bc/$ss-) Act--ty b$se c/$ss. A) $/-c$t-") c")s-sts $t /e$st ")e $ct--ty =h-ch -s
!ese)ted t" the +se! =he) $/-c$t-") -s /$+)ched. 6e c$) m"e !"m ")e $ct--ty t"
$)"the! by c$//-) meth"d st$!tAct--ty F "! st$!tAct--tye +se " =-)d"= =h-ch -// the sc!ee) "! m-ht
be sm$//e! th$) the sc!ee) $)d /"$t ") t" " "the! =-)d"=s /->e "@+ d-$/". Dee/"e!
"te) st$!t =-th the c$// t" meth"d
Oe!!-de
+b/-c "-d ")C!e$te 4+)d/e s$edI)st$)ceSt$teF
School of Information Sciences, Manipal Pae 8
8/12/2019 Mid Term Document
9/26
HOTEL DIRECTORY APPLICATION
6he!e the -s+$/ c")te)t " -e=s "b#ects $!e !"-ded. ?-e= "b#ects $!e de!-ed !"m
?-e= c/$ss $)d e$ch c")t!"/s $ $!t-c+/$! !et$)+/$! s$ce =-th-) =-)d"=. Dee/"e! c$)
c!e$te ?-e= "b#ect !"m c"de "! -) m+ch e$s-e! =$y +s-) Bm/ -/e =h-ch desc!-bes the
h-e!$!ch-c$/ "!$)-J$t-") " =-)d"=. P$!e)t -e=s c")t$-) $)d "!$)-Je the /$y"+t " the-!
ch-/d!e). ?-e=s $t /e$ d!$= -) the-! !ect$)/e $)d !es")se t" +se! $ct-")s d-!ected $t th$t
s$ce. A -e= h-e!$!chy -s /$ced =-th -) $) $ct--tys =-)d"= by the
Act--ty.setC")te)t?-e=F meth"d.
& Services+ A se!-ce d"es )"t h$e $ -s+$/ +se! -)te!$ce $)d !+)s -) the b$c>!"+)d "!
-)de-)-te e!-"d " t-me. A se!-ce /$y -) !"/e s+ch $!e etch-) d$t$ "e! the )et="!> "!
c$/c+/$te s"meth-) $)d !"-de the !es+/t the !es+/t t" $ct--t-es th$t )eed -t. E$ch se!-ce
eBte)ds the Se!-ce b$se c/$ss. Se!-ce !+) -) the m$-) th!e$d " the $/-c$t-") !"cess3 t"$"-d b/"c>-) "the! c"m")e)ts "! the +se! -)te!$ce they "te) s$=) $)"the! th!e$d "!
t-me@c")s+m-) t$s>. A)d!"-d !"-de H$)d/e! c/$ss t" h$)d/e mess$e eBch$)e bet=ee)
th!e$d $)d )"t -)te!e!e "the! I th!e$d.
* !roacast receiver+ -s $ c"m")e)t th$t /-ste)-) $)d !e$ct t" b!"$dc$st $))"+)ceme)ts
s+ch $s t-meJ")e h$s ch$)ed3 b$tte!y -s /"=3 $ c"m-) c$//.etc..A/-c$t-") c$) $/s"
b!"$dc$sts $) ee)t t" /et "the! $/-c$t-")s. Th-s c"m")e)t d" )"t d-s/$y t" +se! b+t
they c$) st$!t $)"the! ee)t "! +se N"t--c$t-")M$)$e! t" $/e!t the +se!. Dee/"e!s c$)
-m/eme)t b!"$dc$st !ece-e! by s+bc/$ss-) 4!"$dc$stRece-e! b$se c/$ss.
0 #ontent provier+ the ")/y =$y t" c"mm+)-c$te bet=ee) $/-c$t-") by m$>e $
sec--c set " $/-c$t-")s d$t$ $$-/$b/e t" "the!s. These d$t$ -s st"!e -) e!s-ste)ce se)se
by !"-de! s-de the ")e s+bc/$ss C")te)tP!"-de! b$se c/$ssF. C")te)tP!"-de! !"-de $)
-)te!$ce =-th meth"ds t" st"!e $)d !et!-ee d$t$ =h-ch the) c$) be +sed by c")s+me!.
C")s+me!s $!e s+bc/$sses " C")te)tRes"/e! b$se c/$ss =h-ch t$>e t" $)y c")te)t
!"-de!. C")te)tRes"/e! c""e!$tes =-th the !"-de! t" m$)$e $)y -)te!!"cess
c"mm+)-c$t-") th$ts -)"/ed.
6he)ee! the!es $ !e;+est th$t sh"+/d be h$)d/ed by $ $!t-c+/$! c"m")e)t3
A)d!"-d m$>es s+!e th$t the $/-c$t-") !"cess " the c"m")e)t -s !+))-)3 st$!t-) -t -
School of Information Sciences, Manipal Pae 9
8/12/2019 Mid Term Document
10/26
HOTEL DIRECTORY APPLICATION
)ecess$!y3 $)d th$t $) $!"!-$te -)st$)ce " the c"m")e)t -s $$-/$b/e3 c!e$t-) the
-)st$)ce - )ecess$!y. A c")te)t !"-de! -s $ct-e ")/y =h-/e -ts !es")d-) t" $ !e;+est
!"m $ C")te)tRes"/e!. A)d $ b!"$dc$st !ece-e! -s $ct-e ")/y =h-/e -ts !es")d-) t" $
b!"$dc$st mess$e. S" the!es )" )eed t" eB/-c-t/y sh+t d"=) these c"m")e)ts. Act--t-es3
") the "the! h$)d3 !"-de the +se! -)te!$ce. They!e -) $ /")@!+))-) c")e!s$t-") =-th
the +se! $)d m$y !em$-) $ct-e3 ee) =he) -d/e3 $s /") $s the c")e!s$t-") c")t-)+es.
S-m-/$!/y3 se!-ces m$y $/s" !em$-) !+))-) "! $ /") t-me.
C"m")e)ts m-ht $/s" be sh+t d"=) by the system =he) they $!e )" /")e! be-)
+sed "! =he) A)d!"-d m+st !ec/$-m mem"!y "! m"!e $ct-e c"m")e)ts.
&4 The Anroi Manifest file
A)d!"-dM$)-est -/e -s $) QML -/e dec/$!e $/-c$t-")s c"m")e)ts3 )$m-) $)y
/-b!$!-es the $/-c$t-") )eeds t" be /-)>ed $)d -de)t-y-) $)y e!m-ss-") the $/-c$t-")
eBected t" be !$)ted. Its )$me -s -Bed $)d -s the s$me "! ee!y $/-c$t-"). Th-s c$) be
c")s-de!-) the c")-+!$t-") -/e " $/-c$t-"). The s)- c"de be/"= sh"= $!t " QML
-/e =h-ch -s +sed by My !"#ect $)d =e c$) see the dec/$!$t-") " $ct--t-es =-th
c"!!es")d-) c/$ss3 I)te)t -/te! =h-ch ded-c$te the c"m")e)t -s "-) t" !ece-e the
-)te)t mess$e..etc.
School of Information Sciences, Manipal Pae 10
8Bm/ e!s-")1.0 e)c"d-)+t@U8Vm$)-est Bm/)s%$)d!"-dhtt%&&schem$s.$)d!"-d.c"m&$>&!es&$)d!"-d
$c>$ec"m.eB$m/e.s/$shtest
$)d!"-d%e!s-")C"de1
$)d!"-d%e!s-")N$me1.0 V
+ses@sd>
$)d!"-d%m-)Sd>?e!s-")'
$)d!"-d%t$!etSd>?e!s-")1U &V
$/-c$t-")
$)d!"-d%$//"=4$c>+t!+e
$)d!"-d%-c")d!$=$b/e&-cW/$+)che! $)d!"-d%/$be/st!-)&$W)$me
$)d!"-d%themesty/e&ATheme V
$ct--ty $)d!"-d%)$mec"m.eB$m/e.s/$shtest.S/$shSc!ee)
$)d!"-d%/$be/st!-)&$W)$me
$)d!"-d%sc!ee)O!-e)t$t-")"!t!$-t
$)d!"-d%theme$)d!"-d%sty/e&Theme.4/$c>.N"T-t/e4$! V
8/12/2019 Mid Term Document
11/26
HOTEL DIRECTORY APPLICATION
* 5H5 an 'AM5
Introuction
PHP -s $ se!e!@s-de sc!-t-) /$)+$e des-)ed "! =eb dee/"me)t b+t $/s" +sed $s $
e)e!$/@+!"se !"!$mm-) /$)+$e. 6h-/e PHP "!--)$//y st""d "! Pe!s")$/ H"me -t
)"= st$)ds "! PHP% Hye!teBt P!e!"cess"!3 $ !ec+!s-e $c!")ym.
PHP c"de -s -)te!!eted by $ =eb se!e! =-th $ PHP !"cess"! m"d+/e3 =h-ch
e)e!$tes the !es+/t-) =eb $e% PHP c"mm$)ds c$) be embedded d-!ect/y -)t" $) HTML
s"+!ce d"c+me)t !$the! th$) c$//-) $) eBte!)$/ -/e t" !"cess d$t$. It h$s $/s" e"/ed t"
-)c/+de $ c"mm$)d@/-)e -)te!$ce c$$b-/-ty $)d c$) be +sed -) st$)d$/")e !$h-c$/
$/-c$t-")s.
PHP $cts !-m$!-/y $s $-/te!3 t$>-) -)+t !"m $ -/e "! st!e$m c")t$-)-) teBt
$)d&"! PHP -)st!+ct-")s $)d "+t+tt-) $)"the! st!e$m " d$t$G m"st c"mm")/y the "+t+t
=-// be HTML3 $/th"+h -t c"+/d be ,SON3 QML"! -m$e d$t$3 $m") "the!s +se+/ -)
=eb dee/"me)t.
6AMP st$)ds "! '-)d"=s&A$che&MySL&5HP3 5yth")3 $)d&"!F 5ERL.
The $c!")ym 6AMP !ee!s t" $ set " !ee "e) s"+!ceF $/-c$t-")s3 c"mb-)ed =-th
M-c!"s"t 6-)d"=s3 =h-ch $!e c"mm")/y +sed -) 6eb se!e!e)-!")me)ts. The 6AMP
st$c> !"-des dee/"e!s =-th the "+! >ey e/eme)ts " $ 6eb se!e!% $) "e!$t-)
system3d$t$b$se3 6eb se!e! $)d 6eb sc!-t-) s"t=$!e. The c"mb-)ed +s$e " these!"!$ms -s c$//ed $ se!e! st$c>. I) th-s st$c>3 M-c!"s"t 6-)d"=s-s the "e!$t-) system
OSF3A$che-s the 6eb se!e!3MySLh$)d/es the d$t$b$se c"m")e)ts3 =h-/e
PHP3 Pyth")3 "! PERL!e!ese)ts the dy)$m-c sc!-t-) /$)+$es.
I h$e -)st$//ed 6$m se!e! $)d c!e$ted d$t$b$se +s-) hMy$dm-).C!e$te $
t$b/e -) the d$t$b$se =-th -e/ds )$me3 h")e )+mbe! $)d desc!-t-"). C!e$te $ PHP c/$ss
t" c"))ect t" MySL d$t$b$se. The m$-) +!"se " th-s c/$ss -s t" "e) $ c"))ect-") t"
d$t$b$se $)d c/"se the c"))ect-") =he)ee! -t -s )"t )eeded. S" c!e$te t=" -/es c$//ed
dbWc")-.h $)d dbWc"))ect.h t" c"))ect the d$t$b$se $)d c")t$-)s d$t$b$se
c"))ect-") $!-$b/es.
A// the b$s-c CRD C!e$te3 Re$d3 d$te3 De/eteF "e!$t-")s ") MySL d$t$b$se
-s d")e +s-) PHP.I $m c!e$t-) "+! h -/es t" c$!!y "+t these "e!$t-")s.
School of Information Sciences, Manipal Pae 11
http://en.wikipedia.org/wiki/Filter_(software)http://en.wikipedia.org/wiki/JSONhttp://en.wikipedia.org/wiki/XMLhttp://www.webopedia.com/TERM/O/open_source.htmlhttp://www.webopedia.com/TERM/A/application.htmlhttp://www.webopedia.com/TERM/W/Web_server.htmhttp://www.webopedia.com/TERM/O/operating_system.htmhttp://www.webopedia.com/TERM/O/operating_system.htmhttp://www.webopedia.com/TERM/D/database.htmlhttp://www.webopedia.com/TERM/M/Microsoft_Windows.htmlhttp://www.webopedia.com/TERM/A/Apache_Web_server.htmlhttp://www.webopedia.com/TERM/M/MySQL.htmlhttp://www.webopedia.com/TERM/P/PHP.htmlhttp://www.webopedia.com/TERM/P/Python.htmhttp://www.webopedia.com/TERM/P/Perl.htmlhttp://en.wikipedia.org/wiki/Filter_(software)http://en.wikipedia.org/wiki/JSONhttp://en.wikipedia.org/wiki/XMLhttp://www.webopedia.com/TERM/O/open_source.htmlhttp://www.webopedia.com/TERM/A/application.htmlhttp://www.webopedia.com/TERM/W/Web_server.htmhttp://www.webopedia.com/TERM/O/operating_system.htmhttp://www.webopedia.com/TERM/O/operating_system.htmhttp://www.webopedia.com/TERM/D/database.htmlhttp://www.webopedia.com/TERM/M/Microsoft_Windows.htmlhttp://www.webopedia.com/TERM/A/Apache_Web_server.htmlhttp://www.webopedia.com/TERM/M/MySQL.htmlhttp://www.webopedia.com/TERM/P/PHP.htmlhttp://www.webopedia.com/TERM/P/Python.htmhttp://www.webopedia.com/TERM/P/Perl.html8/12/2019 Mid Term Document
12/26
HOTEL DIRECTORY APPLICATION
T" c!e$te )e= h"te/ -)"!m$t-") - $m !e$d-) h"te/ d$t$ -$ POST $)d st"!-) them -) h"te/
t$b/e. At the e)d - $m ech"-) $!"!-$te ,SON $s !es")se. d$t-) $)d de/et-) h"te/
d$t$ -s d")e b$sed ") the -d $s "st $!$mete!.
)t-/ )"=3 =e b+-/t $ s-m/e $- "! "+! h"te/ t$b/e. 6e $!e )"= d")e =-th the
se!e! s-de c"d-) PHPF $)d -ts t-me t" t$>e $ b!e$> $)d st$!t "+! $ct+$/ $)d!"-d
$/-c$t-") c"d-).
8/12/2019 Mid Term Document
13/26
HOTEL DIRECTORY APPLICATION
0 "67UI"6M6%T A%A8SIS
The !"#ect -)"/ed $)$/yJ-) the des-) " e= $/-c$t-")s s" $s t" m$>e the
$/-c$t-") m"!e +se! !-e)d/y. T" d" s"3 -t =$s !e$//y -m"!t$)t t" >ee the )$-$t-")s !"m
")e sc!ee) t" the "the! =e//@"!de!ed $)d $t the s$me t-me !ed+c-) the $m"+)t " ty-) the
+se! )eeds t" d". I) "!de! t" m$>e the $/-c$t-") m"!e $ccess-b/e3 the $)d!"-d e!s-") h$d t"
be ch"se) s" th$t -t -s c"m$t-b/e =-th m"st " the A)d!"-d de-ces. He)ce A)d!"-d 2.(.(
-)e!b!e$d e!s-") =$s ch"se).
0$ "e9uirement Specification
0$$ :unctional "e9uirements
!$h-c$/ se! -)te!$ce =h-ch the +se!
P!"-de $ccess-b-/-ty t" the $/-c$t-") th!"+h ce//+/$! )et="!>.
MySL th$t st"!es the -)"!m$t-") t" be d-s/$yed t" the +se!
0$& Soft;are "e9uirements
% ce//+/$! Net="!>
0$* Har;are re9uirements+
A)d!"-d de-ce3 C"m+te!
School of Information Sciences, Manipal Pae 13
8/12/2019 Mid Term Document
14/26
HOTEL DIRECTORY APPLICATION
3 IM56M6%TATIO%
Th-s sect-") desc!-bes the +se! -)te!$ce -m/eme)t$t-") " the $)d!"-d m"b-/e
$/-c$t-") .I) A)@d!"-d $/-c$t-") dee/"me)t the ?-e= $)d ?-e= !"+ "b#ects $!e
+sed t" b+-/d the +se! -)te!@$ce.
A -e= "b#ect !e!ese)ts d$t$ st!+ct+!e =h"se !"e!t-es st"!e the /$y"+t $!$mete!s
$)d c")te)t ") $ -e) sec--c $!e$ " the Sc!ee). A)d!"-d Dee/"e!s3 d$te " !et!-e$/
11.(.2012F The /$y"+t "! d-e!e)t $ct--t-es -) $) $/-c$t-") c$) be de-)ed +s-) the
QML b$sed /$y"+t -/e.
The H"te/ D-!ect"!y $/-c$t-") -s des-)ed !"m $ +se! "-)t " -e=. The +se!
!-e)d/y des-) he/s the +se!s -) $cc"m/-sh-) the-! t$s> =-th e$se. Attemts h$e bee)
m$de t" >ee the des-) s-m/e $)d +)de!st$)d$b/e.
The sc!ee)s =e!e des-)ed -) QML $)d the b+s-)ess /"-c =$s =!-tte) -) ,$$. The
d$t$b$se +sed -s MySL =he!e $// the -)"!m$t-") !e/$ted t" !est$+!$)ts $)d +se!s -s st"!ed.
The =eb se!-ce +sed t" c"))ect MySL d$t$b$se =-th A)d!"-d -s PHP. The PHP -/es $!e
/"c$ted ") the 6AMP Se!e!.
3$ User interface
The $/-c$t-") -s c"m!-sed " "+! $ct--ty c/$sses $)d $ ,SON $!se! c/$ss. The
-!st $ct--ty c/$ss th$t -s -m/eme)ted $s the s/$sh sc!ee) -s !e!ese)ted by the m$-) /$y
"+t -e=. The m$-) ?-e= -s de-)ed -) the s/$sh.Bm/ /$y"+t -/e " the !es"+!ce " the$/-c$t-"). The -/e !es-des -) the !es"+!ces&/$y"+t "/de!.
The -!st sc!ee) -s $ s/$sh sc!ee) =-th the c"m$)y /"". A t-me! -s sec--ed "!
the s/$sh sc!ee) $)d $te! the t-me de/$y -t st$!ts $ )e= Act--ty.The Sc!ee)sh"t -s $s
sh"=) be/"=.
The API "! s/$sh sc!ee) -s%
1. +b/-c c/$ss HanlereBte)dsOb#ect
C/$ss Oe!-e=
A H$)d/e! $//"=s y"+ t" se)d $)d !"cess Mess$e$)d R+))$b/e "b#ects $ss"c-$ted =-th $
th!e$ds Mess$e+e+e. E$ch H$)d/e! -)st$)ce -s $ss"c-$ted =-th $ s-)/e th!e$d $)d th$t
th!e$ds mess$e ;+e+e. 6he) y"+ c!e$te $ )e= H$)d/e!3 -t -s b"+)d t" the th!e$d &
mess$e ;+e+e " the th!e$d th$t -s c!e$t-) -t @@ !"m th$t "-)t ")3 -t =-// de/-e! mess$es
School of Information Sciences, Manipal Pae 14
http://developer.android.com/reference/java/lang/Object.htmlhttp://developer.android.com/reference/java/lang/Object.htmlhttp://developer.android.com/reference/android/os/Message.htmlhttp://developer.android.com/reference/android/os/MessageQueue.htmlhttp://developer.android.com/reference/java/lang/Object.htmlhttp://developer.android.com/reference/android/os/Message.htmlhttp://developer.android.com/reference/android/os/MessageQueue.html8/12/2019 Mid Term Document
15/26
HOTEL DIRECTORY APPLICATION
$)d !+))$b/es t" th$t mess$e ;+e+e $)d eBec+te them $s they c"me "+t " the mess$e
;+e+e.
The!e $!e t=" m$-) +ses "! $ H$)d/e!%
1F T" sched+/e mess$es $)d !+))$b/es t" be eBec+ted $s s"me "-)t -) the +t+!eG $)d
2F T" e);+e+e $) $ct-") t" be e!"!med ") $ d-e!e)t th!e$d th$) y"+! "=).
6he) "st-) "! se)d-) t" $ H$)d/e!3 y"+ c$) e-the! $//"= the -tem t" be !"cessed $s
s"") $s the mess$e ;+e+e -s !e$dy t" d" s"3 "! sec-y $ de/$y be"!e -t ets !"cessed "!
$bs"/+te t-me "! -t t" be !"cessed. The /$tte! t=" $//"= y"+ t" -m/eme)t t-me"+ts3 t-c>s3
$)d "the! t-m-)@b$sed beh$-"!.
P+b/-c Meth"ds +sed
-)$/ b""/e$)
"stDe/$yedR+))$b/e !3 /") de/$yM-//-sF
C$+ses the R+))$b/e ! t" be $dded t" the mess$e ;+e+e3 t" be !+) $te!
the sec--ed $m"+)t " t-me e/$ses.
School of Information Sciences, Manipal Pae 15
8/12/2019 Mid Term Document
16/26
HOTEL DIRECTORY APPLICATION
8/12/2019 Mid Term Document
17/26
HOTEL DIRECTORY APPLICATION
As y"+ =-// see3 the!e -s $ M$-) $ct--ty =-th t=" b+tt")s $)d ")C/-c> /-ste)e!s $!e
sec--ed "! b+tt") c/-c>.
8/12/2019 Mid Term Document
18/26
HOTEL DIRECTORY APPLICATION
Set ")C/-c>L-ste)e! t" Add )e= H"te/ b+tt")3 =he) th-s b+tt") -s c/-c>ed +s-) -)te)t -t
m+st /$+)ch $ )e= $ct--ty t" c!e$te )e= h"te/ det$-/s. He!e I $m c!e$t-) $ )e= -e= $)d
$ct--ty t" $dd $ )e= h"te/ -)t" MySL d$t$b$se. A s-m/e "!m -s c!e$ted =h-ch c")t$-)s
Ed-tTeBt "! H"te/ )$me3 h")e $)d desc!-t-") " /"c$t-") " h"te/. The det$-/s $!e -//ed
by the +se! m$)+$//y. The e)te!ed d$t$ -s )"= st"!ed -) the d$t$b$se t$b/e ") c/-c>-)
C!e$te H"te/ b+tt").
Th-s )e= Act--ty d"es the "//"=-)%
!"+)d "e!$t-")s $)d +b/-sh !es+/ts ") the I th!e$d =-th"+t h$-) t" m$)-+/$te
th!e$ds $)d&"! h$)d/e!s.
6he) $) $sy)ch!")"+s t$s> -s eBec+ted3 the t$s> eBec+tes the meth"ds /-sted be/"=.
P!"tected Meth"ds
$bst!$ct Res+/t d"I)4$c>!"+)dP$!$ms... $!$msFOe!!-de th-s meth"d t" e!"!m $
c"m+t$t-") ") $ b$c>!"+)d th!e$d.
"-d ")P"stEBec+teRes+/t !es+/tF
R+)s ") the I th!e$d $te! d"I)4$c>!"+)dP$!$ms...F.
"-d ")P!eEBec+teF
R+)s ") the I th!e$d be"!e
d"I)4$c>!"+)dP$!$ms...F.
School of Information Sciences, Manipal Pae 18
http://developer.android.com/reference/java/lang/Object.htmlhttp://developer.android.com/reference/android/os/AsyncTask.html#onPostExecute(Result)http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)http://developer.android.com/reference/android/os/AsyncTask.html#onPreExecute()http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)http://developer.android.com/reference/java/lang/Object.htmlhttp://developer.android.com/reference/android/os/AsyncTask.html#onPostExecute(Result)http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)http://developer.android.com/reference/android/os/AsyncTask.html#onPreExecute()http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)8/12/2019 Mid Term Document
19/26
HOTEL DIRECTORY APPLICATION
The sc!ee)sh"t t" $dd )e= h"te/ det$-/s -s $s sh"=) be/"=.
8/12/2019 Mid Term Document
20/26
HOTEL DIRECTORY APPLICATION
6he) the -e= b+tt") -s c/-c>ed $ /-st -s d-s/$yed =-th $// the h"te/ )$mes !"m the
d$t$b$se. O) C/-c>-) the ?-e= H"te/s b+tt") $ )e= Act--ty -s /$+)ched d-s/$y-) $
/-st?-e=.Th-s Act--ty d"es the "//"=-)
!"+)d Asy)c t$s>
th!e$d.
Ate! ett-) ,SON !"m etW$//Wh"te/.h3 - $!sed -t $)d d-s/$yed -) $ /-st-e=.
I the!e $!e )" !"d+cts "+)d AddNe=H"te/Ac--ty -s /$+)ched.
The API +sed $!e%
1. P+b/-c c/$ss HashMap eBte)ds Abst!$ctM$*3 ?V
C/$ss Oe!-e=
H$shM$ -s $) -m/eme)t$t-") " M$.A// "t-")$/ "e!$t-")s $!e s+"!ted.
A// e/eme)ts $!e e!m-tted $s >eys "! $/+es3 -)c/+d-) )+//.
2. +b/-c c/$ss istActivityeBte)ds Act--ty
C/$ss Oe!-e=
A) $ct--ty th$t d-s/$ys $ /-st " -tems by b-)d-) t" $ d$t$ s"+!ce s+ch $s $) $!!$y "!
C+!s"!3 $)d eB"ses ee)t h$)d/e!s =he) the +se! se/ects $) -tem.
P+b/-c Meth"d
L-st?-e=
+b/-c L-st?-e= etL-st?-e= F
et the $ct--tys /-st -e= =-det.
L-stAd$te!
+b/-c L-stAd$te! etL-stAd$te! F
et the L-stAd$te! $ss"c-$ted =-th th-s $ct--tys L-st?-e=.
School of Information Sciences, Manipal Pae 20
http://developer.android.com/reference/java/util/AbstractMap.htmlhttp://developer.android.com/reference/java/util/Map.htmlhttp://developer.android.com/reference/java/util/Map.htmlhttp://developer.android.com/reference/java/util/AbstractMap.htmlhttp://developer.android.com/reference/java/util/Map.html8/12/2019 Mid Term Document
21/26
HOTEL DIRECTORY APPLICATION
8/12/2019 Mid Term Document
22/26
HOTEL DIRECTORY APPLICATION
The L-st-e= " h"te/s -s $s sh"=). O) c/-c>-) $ $!t-c+/$! /-st -tem $ )e= $ct--ty -s
st$!ted. I) th-s $ct--ty the +se! c$) m$>e m"d--c$t-")s " the d$t$ $)d s$e. The d$t$ -s
etched !"m the d$t$b$se $)d d-s/$yed.
A// ch$)es m$de $!e st"!ed $)d +d$ted -) the d$t$b$se +s-) h.
8/12/2019 Mid Term Document
23/26
HOTEL DIRECTORY APPLICATION
8/12/2019 Mid Term Document
24/26
HOTEL DIRECTORY APPLICATION
3&
8/12/2019 Mid Term Document
25/26
HOTEL DIRECTORY APPLICATION
4 5"O5OS6D 'O".
The !""sed ="!> "! h"te/ d-!ect"!y $/-c$t-") -s th$t =he) the +se! c/-c>s ")
the )$me " sec--c h"te/3 the /"c$t-") " the h"te/ sh"+/d be sh"=) ") ""/e
m$. se " ""/e m$s he/s +se! t" -)d the eB$ct /"c$t-").
School of Information Sciences, Manipal Pae 25
8/12/2019 Mid Term Document
26/26
HOTEL DIRECTORY APPLICATION
> !I!IO?"A5H8
1. ===.dee/"e!.$)d!"-d.c"m
2. htt%&&dee/"e!.$)d!"-d.c"m&!ee!e)ce&$c>$es.htm/(. C"))ect-") bet=ee) PHP se!e!F $)d A)d!"-d c/-e)tF s-) HTTP $)d ,SON
htt%&&$hm-!$hm$).="!d!ess.c"m&2011&05&21&c"))ect-")@bet=ee)@h@se!e!@
$)d@$)d!"-d@c/-e)t@+s-)@htt@$)d@#s")&
5. A)d!"-d A P!"!$mme! +-de Mc!$= H-//
9. X-+!dMed)-e>s3 L$-!d D"!)-)3 . 4/$>e Me->e3 $)d M$s+m- N$>$m+!$ 2011F%
P!"!$mm-) A)d!"-d2)ded-t-")
:. He$d