You are on page 1of 75

B.V.C.I.T.

S 1
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

1.1 ABOUT PROJECT:
The ise!se etecti"e !n# $ui#e application will helps the people who are in the that they
dont know their disease So!e people will ne"lect their disease #y thinkin" this !ay not #e a disease
$eca%se o& this their li&e will #eco!e !ore har!&%l
'hen this application is a(aila#le) they can easily know the sy!pto!s o& the! leads to which
disease So they &ollow the preca%tions pro(ided #y this application $eca%se this application is
pro(idin" the in&or!ation related to the diseases) sy!pto!s and the necessary preca%tions to #e taken
1.% PURPOSE A& SCOPE
Pu'(ose
The !ain p%rpose o& this application is it pro(ides diseases &or #oth children and elders It pro(ides
the in&or!ation re"ardin" the disease ie) the sy!pto!s o& the disease and the necessary
preca%tions to #e taken &or the disease witho%t "oin" &or treat!ent
1.) E*ISTI&$ S+STE,
*any people &aces !any !edical pro#le!s while they are on their work or any They !ay think
that it !i"ht lead to a #i""er disease and take !edicines with their !ini!%! knowled"e Di&&erent
we#sites di&&erent rele(ant in&or!ation re"ardin" the sy!pto!s The %sers will #e in a dile!!a to
take an option &ro! those preca%tions
1.- PROPOSE S+STE,
+ere we are de(elopin" an app to attention the %sers re"ardin" the attention to #e taken &or the
sy!pto!s that they are &acin" and we pro(ide so!e necessary &irst aid preca%tions This
application "i(es a Detailed st%dy o& all diseases &or children and !iddle a"e people with
necessary preca%tions
B.V.C.I.T.S 2
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

B.V.C.I.T.S 3
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

%.1 RE.UIRE,E&T SPECI/ICATIO&
0h!t is SRS1
So&tware ,e-%ire!ent Speci&ication .S,S/ is the startin" point o& the so&tware de(elopin"
acti(ity As syste! "rew !ore co!ple0 it #eca!e e(ident that the "oal o& the entire syste! cannot #e
easily co!prehended +ence the need &or the re-%ire!ent phase arose The so&tware pro1ect is
initiated #y the client needs The S,S is the !eans o& translatin" the ideas o& the !inds o& clients .the
inp%t/ into a &or!al doc%!ent .the o%tp%t o& the re-%ire!ent phase/
The SRS (h!se consists of t2o 3!sic !cti"ities:
Re4ui'e5ent S(ecific!tion:
+ere) the &oc%s is on speci&yin" what has #een &o%nd "i(in" analysis s%ch as representation)
speci&ication lan"%a"es and tools) and checkin" the speci&ications are addressed d%rin" this acti(ity
The ,e-%ire!ent phase ter!inates with the prod%ction o& the (alidate S,S doc%!ent 2rod%cin" the
S,S doc%!ent is the #asic "oal o& this phase
Role of SRS:
The p%rpose o& the So&tware ,e-%ire!ent 3Speci&ication is to red%ce the co!!%nication "ap
#etween the clients and the de(elopers So&tware ,e-%ire!ent Speci&ication is the !edi%! tho%"h
which the client and %ser needs are acc%rately speci&ied It &or!s the #asis o& so&tware de(elop!ent
A "ood S,S sho%ld satis&y all the parties in(ol(ed in the syste!
%.% /U&CTIO&A6 RE.UIRE,E&TS
4%nctional ,e-%ire!ents are (ery i!portant syste! re-%ire!ents in the syste! desi"n process
These re-%ire!ents are the technical speci&ications) syste! desi"n para!eters and "%idelines) data
!anip%lation) data processin") and calc%lation !od%les etc) o& the proposed syste! 4%nctional
,e-%ire!ents are in contrast to Non54%nctional ,e-%ire!ents which are descripti(e o& the para!eters
o& syste! per&or!ance) -%ality attri#%tes) relia#ility and sec%rity) cost) constraints in
desi"n3i!ple!entation) etc
B.V.C.I.T.S 4
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

The &%nctional re-%ire!ents o& this application are6
It pro(ides the in&or!ation re"ardin" diseases) sy!pto!s and necessary preca%tions to #e
taken
The %ser can interact with this application #y clickin" search #%tton
This application pro(ides the diseases &or #oth children and elders so that anyone can %se this
application
%.) &O& /U&CTIO&A6 RE.UIRE,E&TS
A Non54%nctional ,e-%ire!ent is %s%ally so!e &or! o& constraint or restriction that !%st #e
considered when desi"nin" the sol%tion 4or the !ost part when people are talkin" a#o%t Constraints)
they are re&errin" to Non54%nctional ,e-%ire!ents
Non54%nctional ,e-%ire!ents &or o%r pro1ect are6
Re!#!3ility6 Code sho%ld #e easily %nderstanda#le
Po't!3ility: 2orta#ility speci&ies the ease with the so&tware can #e installed on all necessary
plat&or!s) and the plat&or!s on which it is e0pected to r%n This syste! will #e porta#le across
!any plat&or!s #eca%se this syste! is de(eloped #y %sin" ad(anced 1a(a
Reli!3ility: ,elia#ility !eans the a#ility o& a syste! or co!ponent to per&or! is re-%ired
&%nctions %nder stated conditions &or a speci&ied period o& ti!e that !eans !aintain acc%racy
o(erti!e This syste! pro(ides relia#ility #y pro(idin" an e!ployee to clear his co!plaints in
a short period o& ti!e
%.- S+STE, SPECI/ICATIO&S
%.-.1 7AR0ARE RE.UIRE,E&TS
2enti%!5IV .2rocessor/
789 *$ ,a!
8:7 ;$ Cache *e!ory
+ard disk <= G$
*icroso&t Co!pati#le :=: or !ore ;ey $oard
%.-.% SO/T0ARE RE.UIRE,E&TS
>peratin" Syste! 6 'indows.Any operatin" syste! can s%ita#le/
2ro"ra!!in" lan"%a"e6 ?AVA
Technolo"y6 Android
4ront5End6 ?a(a
$ack5End6 S-lite
B.V.C.I.T.S 5
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

B.V.C.I.T.S 6
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

).1 P'o3le5 An!lysis
The process is order and !ore ne#%lo%s o& the two) deals with %nderstand the pro#le!) the "oal
and constraints
esign Const'!ints:8
This application is to &ind the disease with the help o& so!e sy!pto!s that the %ser is s%&&erin"
and it pro(ides the necessary preca%tions need to take #e&ore "oin" &or treat!ent
'ith this application %sers can easily know the sy!pto!s o& diseases that !akes the!
%nhealthy So they &ollow the preca%tions pro(ided #y this application
Analysis is the detailed st%dy o& the (ario%s operations per&or!ed #y a syste! and their
relationships within and o%tside o& the syste! A key -%estion is6 'hat !%st #e done to sol(e the
pro#le!@ >ne aspect o& analysis is de&inin" the #o%ndaries o& the syste! and deter!inin" whether or
not candidate syste! sho%ld consider other related syste!s D%rin" analysis) data are collected on the
a(aila#le &iles) decision points) and transactions handled #y the present syste!
).% Syste5 ,o#el
).%.1 !t! /lo2 i!g'!5s:8
The D4D takes an inp%t5process5o%tp%t (iew o& a syste! ie data o#1ects &low into the
so&tware) are trans&or!ed #y processin" ele!ents) and res%ltant data o#1ects &low o%t o& the so&tware
Data o#1ects represented #y la#eled arrows and trans&or!ation are represented #y circles
also called as #%##les D4D is presented in a hierarchical &ashion ie the &irst data &low !odel
represents the syste! as a whole

Data&low
2rocessin" Node

B.V.C.I.T.S 7
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science


So%rce or Destination


RU6ES /OR /
4i0 the scope o& the syste! #y !eans o& conte0t dia"ra!s
>r"aniAe the D4D so that the !ain se-%ence o& the actions
,eads le&t to ri"ht and top to #otto!
Identi&y all inp%ts and o%tp%ts
Identi&y and la#el each process internal to the syste! with ,o%nded circles
A process is re-%ired &or all the data trans&or!ation and Trans&ers There&ore) ne(er connect a
data store to a data So%rce or the destinations or another data store with 1%st a Data &low arrow
Do not indicate hardware and i"nore control in&or!ation
*ake s%re the na!es o& the processes acc%rately con(ey e(erythin" the process is done
B.V.C.I.T.S 8
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

There !%st not #e %nna!ed process
Indicate e0ternal so%rces and destinations o& the data) with S-%ares
N%!#er each occ%rrence o& repeated e0ternal entities
Identi&y all data &lows &or each process step) e0cept si!ple ,ecord retrie(als
Ba#el data &low on each arrow
Use details &low on each arrow
Use the details &low arrow to indicate data !o(e!ents
).%.% E8R IA$RA,
The Entity5,elationship .E5,/ !odel was ori"inally proposed #y 2eter in :CD9 EChenD9F as a
way to %ni&y the network and relational data#ase (iews Si!ply stated the E5, !odel is a concept%al
data !odel that (iews the real world as entities and relationships A #asic co!ponent o& the !odel is
the Entity5,elationship dia"ra! which is %sed to (is%ally represent data o#1ects
The symbols used in E-R diagrams are:
SYMBOL PURPOSE
,epresents Entity sets


,epresent attri#%tes

,epresents relationship sets

Bine represents &low
B.V.C.I.T.S 9
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

It !aps well to the relational !odel The constr%cts %sed in the E5, !odel can easily #e trans&or!ed
into relational ta#les
It is si!ple and easy to %nderstand with a !ini!%! o& trainin" There&ore) the !odel can #e
%sed #y the data#ase desi"ner to co!!%nicate the desi"n to the end %ser
In addition) the !odel can #e %sed as a desi"n plan #y the data#ase de(eloper to i!ple!ent a
data !odel in speci&ic data#ase !ana"e!ent so&tware
B.V.C.I.T.S 10
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Connecti"ity !n# c!'#in!lity
The #asic types o& connecti(ity &or relations are6 one5to5one) one5to5!any) and !any5to5!any
A one5to5one .:6:/ relationship is when at !ost one instance o& an entity A is associated with one
instance o& entity $ 4or e0a!ple) Ge!ployees in the co!pany are each assi"ned their own o&&ice 4or
each e!ployee there e0ists a %ni-%e o&&ice and &or each o&&ice there e0ists a %ni-%e e!ployee
A one5to5!any .:6N/ relationships is when &or one instance o& entity A) there are Aero) one) or
!any instances o& entity $) #%t &or one instance o& entity $) there is only one instance o& entity A An
e0a!ple o& a :6 N relationships are a depart!ent has !any e!ployees each e!ployee is assi"ned to
one depart!ent A many-to-many .*6N/ relationship) so!eti!es called non5speci&ic) is when &or one
instance o& entity A) there are Aero) one) or !any instances o& entity $ and &or one instance o& entity $
there are Aero) one) or !any instances o& entity A The connecti(ity o& a relationship descri#es the
!appin" o& associated
E8R &ot!tion
There is no standard &or representin" data o#1ects in E5, dia"ra!s Each !odelin"
!ethodolo"y %ses its own notation The ori"inal notation %sed #y Chen is widely %sed in acade!ics
te0ts and 1o%rnals #%t rarely seen in either CASE tools or p%#lications #y non5acade!ics Today) there
are a n%!#er o& notations %sed a!on" the !ore co!!on are $ach!an) crowHs &oot) and IDE4II
All notational styles represent entities as rectan"%lar #o0es and relationships as lines
connectin" #o0es Each style %ses a special set o& sy!#ols to represent the cardinality o& a connection
The notation %sed in this doc%!ent is &ro! *artin The sy!#ols %sed &or the #asic E5, constr%cts are6
Entities are represented #y la#eled rectan"les The la#el is the na!e o& the entity Entity na!es
sho%ld #e sin"%lar no%ns
Rel!tionshi(s are represented #y a solid line connectin" two entities The na!e o& the
relationship is written a#o(e the line ,elationship na!es sho%ld #e (er#s
Att'i3utes) when incl%ded) are listed inside the entity rectan"le Attri#%tes which are
identi&iers are %nderlined Attri#%te na!es sho%ld #e sin"%lar no%ns
C!'#in!lity o& !any is represented #y a line endin" in a crowHs &oot I& the crowHs &oot is
o!itted) the cardinality is one
B.V.C.I.T.S 11
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

E9istence is represented #y placin" a circle or a perpendic%lar #ar on the line *andatory
e0istence is shown #y the #ar .looks like a :/ ne0t to the entity &or an instance is re-%ired
>ptional e0istence is shown #y placin" a circle ne0t to the entity that is optional

).%.) S+STE, ARC7ITECTURE
B.V.C.I.T.S 12
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

0h!t is An#'oi#1
Android is a so&tware stack &or !o#ile de(ices that incl%des an operatin" syste!) !iddleware and key
applications The Android SD; pro(ides the tools and A2Is necessary to #e"in de(elopin"
applications on the Android plat&or! %sin" the ?a(a pro"ra!!in" lan"%a"e
/e!tu'es
A((lic!tion f'!5e2o': ena#lin" re%se and replace!ent o& co!ponents

o !l"i: "i'tu!l 5!chine opti!iAed &or !o#ile de(ices


Integ'!te# 3'o2se' #ased on the open so%rce 'e#;it en"ine
O(ti5i;e# g'!(hics powered #y a c%sto! 7D "raphics li#raryJ KD "raphics #ased on the
>penGB ES := speci&ication .hardware acceleration optional/
S.6ite &or str%ct%red data stora"e
,e#i! su((o't &or co!!on a%dio) (ideo) and still i!a"e &or!ats .*2EG<) +79<) *2K)
AAC) A*,) ?2G) 2NG) GI4/
B.V.C.I.T.S 13
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

$S, Tele(hony .hardware dependent/
Bluetooth< E$E< )$< !n# 0i/i .hardware dependent/
C!5e'!< $PS< co5(!ss< !n# !ccele'o5ete' .hardware dependent/
Rich #e"elo(5ent en"i'on5ent incl%din" a de(ice e!%lator) tools &or de#%""in") !e!ory
and per&or!ance pro&ilin") and a pl%"in &or the Eclipse IDE
An#'oi# A'chitectu'e
The &ollowin" dia"ra! shows the !a1or co!ponents o& the Android operatin" syste! Each section is
descri#ed in !ore detail #elow
A((lic!tions
Android will ship with a set o& core applications incl%din" an e!ail client) S*S pro"ra!) calendar)
!aps) #rowser) contacts) and others All applications are written %sin" the ?a(a pro"ra!!in"
lan"%a"e
A((lic!tion /'!5e2o':
B.V.C.I.T.S 14
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

$y pro(idin" an open de(elop!ent plat&or!) Android o&&ers de(elopers the a#ility to #%ild e0tre!ely
rich and inno(ati(e applications De(elopers are &ree to take ad(anta"e o& the de(ice hardware) access
location in&or!ation) r%n #ack"ro%nd ser(ices) set alar!s) add noti&ications to the stat%s #ar) and
!%ch) !%ch !ore
De(elopers ha(e &%ll access to the sa!e &ra!ework A2Is %sed #y the core applications The
application architect%re is desi"ned to si!pli&y the re%se o& co!ponentsJ any application can p%#lish
its capa#ilities and any other application !ay then !ake %se o& those capa#ilities .s%#1ect to sec%rity
constraints en&orced #y the &ra!ework/ This sa!e !echanis! allows co!ponents to #e replaced #y
the %ser
Underlyin" all applications is a set o& ser(ices and syste!s) incl%din"6
A rich and e0tensi#le set o& Views that can #e %sed to #%ild an application) incl%din" lists)
"rids) te0t #o0es) #%ttons) and e(en an e!#edda#le we# #rowser
Content 2ro(iders that ena#le applications to access data &ro! other applications .s%ch as
Contacts/) or to share their own data
A ,eso%rce *ana"er) pro(idin" access to non5code reso%rces s%ch as localiAed strin"s)
"raphics) and layo%t &iles
A Notification Manager that ena#les all applications to display c%sto! alerts in the stat%s
#ar
An Activity Manager that !ana"es the li&ecycle o& applications and pro(ides a co!!on
na(i"ation #ackstack
4or !ore details and a walkthro%"h o& an application) see the Notepad T%torial
6i3'!'ies
Android incl%des a set o& C3CLL li#raries %sed #y (ario%s co!ponents o& the Android syste! These
capa#ilities are e0posed to de(elopers thro%"h the Android application &ra!ework So!e o& the core
li#raries are listed #elow6
Syste5 C li3'!'y 5 a $SD5deri(ed i!ple!entation o& the standard C syste! li#rary .li#c/)
t%ned &or e!#edded Bin%05#ased de(ices
,e#i! 6i3'!'ies 5 #ased on 2acketVideoHs >penC>,EJ the li#raries s%pport play#ack and
recordin" o& !any pop%lar a%dio and (ideo &or!ats) as well as static i!a"e &iles) incl%din"
*2EG<) +79<) *2K) AAC) A*,) ?2G) and 2NG
Su'f!ce ,!n!ge' 5 !ana"es access to the display s%#syste! and sea!lessly co!posites 7D
and KD "raphic layers &ro! !%ltiple applications
6i30e3Co'e 5 a !odern we# #rowser en"ine which powers #oth the Android #rowser and an
e!#edda#le we# (iew
S$6 5 the %nderlyin" 7D "raphics en"ine
) li3'!'ies 5 an i!ple!entation #ased on >penGB ES := A2IsJ the li#raries %se either
hardware KD acceleration .where a(aila#le/ or the incl%ded) hi"hly opti!iAed KD so&tware
rasteriAer
/'eeTy(e 5 #it!ap and (ector &ont renderin"
S.6ite 5 a power&%l and li"htwei"ht relational data#ase en"ine a(aila#le to all applications
An#'oi# Runti5e
B.V.C.I.T.S 15
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Android incl%des a set o& core li#raries that pro(ides !ost o& the &%nctionality a(aila#le in the core
li#raries o& the ?a(a pro"ra!!in" lan"%a"e
E(ery Android application r%ns in its own process) with its own instance o& the Dal(ik (irt%al
!achine Dal(ik has #een written so that a de(ice can r%n !%ltiple V*s e&&iciently The Dal(ik V*
e0ec%tes &iles in the Dal(ik E0ec%ta#le .de0/ &or!at which is opti!iAed &or !ini!al !e!ory
&ootprint The V* is re"ister5#ased) and r%ns classes co!piled #y a ?a(a lan"%a"e co!piler that ha(e
#een trans&or!ed into the de0 &or!at #y the incl%ded Gd0G tool
The Dal(ik V* relies on the Bin%0 kernel &or %nderlyin" &%nctionality s%ch as threadin" and low5le(el
!e!ory !ana"e!ent
6inu9 =e'nel
Android relies on Bin%0 (ersion 79 &or core syste! ser(ices s%ch as sec%rity) !e!ory !ana"e!ent)
process !ana"e!ent) network stack) and dri(er !odel The kernel also acts as an a#straction layer
#etween the hardware and the rest o& the so&tware stack
1. What is Eclipse?
Eclipse is creaed by an Open Source communiy and is used in se!eral di""eren
areas# e$g$ as a de!elopmen en!ironmen "or %a!a or &ndroid applicaions$ Eclipse
roos go bac' o ())*$
Mos people 'no+ Eclipse as an inegraed de!elopmen en!ironmen ,-.E/ "or %a!a$
Today i is he leading de!elopmen en!ironmen "or %a!a +ih a mar'eshare o"
appro0$ 123$
The Eclipse pro4ec is go!erned by he Eclipse 5oundaion$ The Eclipse 5oundaion is
a non-pro"i# member suppored corporaion ha hoss he Eclipse pro4ecs and helps
o culi!ae boh an open source communiy and an ecosysem o" complemenary
producs and ser!ices$
Eclipse can be e0ended +ih addiional "uncionaliies$ Se!eral Open Source pro4ecs
and companies ha!e e0ended Eclipse +ih addiional componens$ - is also possible
o use Eclipse as a basis "or creaing general purpose applicaions ,Eclipse R6P/$
2. Getting started
2.1. Java
Eclipse re7uires an insalled %a!a Runime$ - recommend o use %a!a 8 ,also 'no+n as
%a!a *$8/ or %a!a 1$
%a!a comes in +o "la!ors# he %a!a Runime En!ironmen ,%RE/ and he %a!a
.e!elopmen 9i ,%.9/$ The %RE conains only he necessary "uncionaliy o sar
%a!a programs# +hile he %.9 conains in addiion he de!elopmen ools$
B.V.C.I.T.S 16
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Eclipse conains is o+n de!elopmen ools# e$g$ %a!a compiler$ There"ore "or his
uorial i is su""icien o use he %RE$
The %.9 is re7uired i" you compile %a!a source code ouside Eclipse and "or
ad!anced de!elopmen scenarios$ 5or e0ample i" you use auomaic builds or i" you
de!elop +eb de!elopmen$ These scenarios are no co!ered in his uorial$
%a!a migh already be insalled on your machine$ You can es his by opening a
console ,i" you are using :indo+s: :in;R# ener <cmd< and press Ener/ and by
yping in he "ollo+ing command:
java -version
-" %a!a is correcly insalled you should see some in"ormaion abou your %a!a
insallaion$ -" he command line reurn he in"ormaion ha he program could no be
"ound# you ha!e o insall %a!a$ & =oogle search "or <>o+ o insall %a!a on $$$< should
resul in help"ul lin's$ Replace <$$$< +ih your operaing sysem# e$g$ :indo+s# Ubunu#
Mac OS ?# ec$
2.2. Install Eclipse
To insall Eclipse do+nload he pac'age <Eclipse -.E "or %a!a .e!elopers< "rom he
+ebsie hp:@@+++$eclipse$org@do+nloads and unpac' i o a local direcory$
The do+nload is a <Aip< "ile$ Mos operaing sysem can e0rac Aip "iles in heir "ile
bro+ser# e$g$ :indo+s8 !ia righ mouse clic' on he "ile and selecing <E0rac all$$$<$ -"
in doub# search !ia =oogle "or <>o+ o unAip a "ile on $$$<# again replacing <$$$< +ih
your operaing sysem$
Use a direcory pah +hich does no conain spaces in is name# as Eclipse someimes
has problems +ih ha$
&"er unpac'ing he do+nload# Eclipse is ready o be usedB no addiional insallaion
procedure is re7uired$
2.3. Start Eclipse
To sar Eclipse double-clic' on he "ile eclipse.exe ,Microso" :indo+s/ or eclipse
,Linu0 @ Mac/ in he direcory +here you unpac'ed Eclipse$ The sysem +ill promp
you "or a +or'space$ The workspace is he place +here you sore your %a!a pro4ecs
,more on +or'spaces laer/$ Selec an empy direcory and press O'$
B.V.C.I.T.S 17
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Eclipse +ill sar and sho+ he :elcome page$ 6lose he +elcome page by pressing
he <?< beside <:elcome<$
3. Eclipse UI Overview
Eclipse pro!ides Perspectives# Views and Editors$ Views and Editors are grouped ino
Perspectives$ &ll pro4ecs are locaed in a workspace$
B.V.C.I.T.S 18
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

3.1. Workspace
The 2o':s(!ce is the (hysic!l loc!tion >file (!th? you !'e 2o':ing in. +ou c!n choose the
2o':s(!ce #u'ing st!'tu( of Ecli(se o' "i! the 5enu > /ile @ S2itch 0o':s(!ce @ Othe's. All
you' ('oAects< sou'ce files< i5!ges !n# othe' !'tif!cts 2ill 3e sto'e# !n# s!"e# in you'
2o':s(!ce$
You can prede"ine he +or'space !ia he sarup parameer -data path_to_workspace# e$g$
c:\eclipse.exe -data "c:\temp"$
Please noe ha you ha!e o pu he pah name ino double 7uoes$
To see he curren +or'space direcory in he ile o" Eclipse use -showLocation as an
addiional parameer$
3.2. Parts
Parts are user iner"ace componens +hich allo+ o na!igae and modi"y daa$ Parts are
ypically di!ided ino Views and Editors$
The disincion ino Views and Editors is primary no based on echnical di""erences# bu
an a di""eren concep o" using and arranging hese Parts$
& View is ypically used o +or' on a se o" daa# +hich migh be hierarchical
srucured$ -" daa is changed !ia he View# his change is ypically direcly applied o
he underlying daa srucure$ Views someimes allo+ o open an Editor "or a seleced
se o" he daa$
B.V.C.I.T.S 19
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

&n e0ample "or a View is he %a!a Pac'age E0plorer# +hich allo+ you bro+se he "iles
o" Eclipse Pro4ecs$ -" you choose o change daa in he Pac'age E0plorer# e$g$ i" you
rename a "ile# he "ile name is direcly changed on he "ilesysem$
Editors are ypically used o modi"y a single daa elemen# e$g$ a "ile or a daa ob4ec$ To
apply he changes done in an edior o he daa srucure# he user ha!e o e0plicily
selec a <Sa!e< command# e$g$ Menu enry$
Editors +ere radiionally placed in a cerain area# called he <edior area<$ Unil Eclipse
C his +as a hard limiaion# i +as no possible o mo!e an Editor ou o" his areaB
Eclipse C allo+s o place Editors a any posiion in a Perspective$
5or e0ample he %a!a Edior is used o modi"y %a!a source "iles$ 6hanges o he
source "ile are only applied# i" he user selecs he <Sa!e< command$
3.3. Perspective
& Perspective is a !isual conainer "or a se o" Parts$
You can change he layou and conen +ihin a Perspective by opening or closing Parts
and by re-arranging hem$
&s o" Eclipse C$0 Perspeci!es are opional elemens "or Eclipse based applicaions$
The Eclipse -.E uses Perspectives o arrange Parts "or di""eren de!elopmen as's$
3.4. Eclipse IDE Perspectives
The Eclipse -.E ships +ih se!eral de"aul Perspectives$
5or %a!a de!elopmen you usually use he Java Perspective# bu Eclipse has much more
prede"ined Perspectives# e$g$ .ebug# =i Reposiories# 6DS Reposiories$
Eclipse allo+s you o s+ich o anoher perspeci!e !ia he menu :indo+ E Open
Perspeci!e E Oher$
& common problem is ha you mis-con"igured your Perspective# e$g$ by closing a View$
You can rese a Perspective o is original sae !ia he menu :indo+ E Rese
Perspeci!e$
3.5. Java Perspective and Package Explorer
The de"aul Perspective "or %a!a de!elopmen can be opened !ia :indo+ E Open
Perspeci!e E %a!a$
On he le" hand side# his perspeci!e sho+s he <Pac'age E0plorer< View# +hich
allo+s o bro+se your %a!a pro4ecs and o selec he componens you +an o +or'
on !ia double-clic'$
B.V.C.I.T.S 20
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

5or e0ample o open a %a!a source "ile# open he ree under src# selec he
corresponding .java "ile and double-clic' i$ This +ill open he "ile in an Editor$
The "ollo+ing picure sho+s he Eclipse -.E in is sandard %a!a perspeci!e$ The
<Pac'age E0plorer< is on he le"$ -n he middle you ha!e he open Editor "or a %a!a
source "ile$ -" se!eral Editors +ould be open# hey +ould be sac'ed in he same place
and you could s+ich be+een hem by clic'ing on he ne0 Editor$ &ll ediors share
he same par o" he Eclipse -.EB his par is called he <edior area<$
To he righ and belo+ he edior area you "ind more Views +hich +ere considered
use"ul by he de!eloper o" he perspeci!e$ 5or e0ample he <6onsole< !ie+ sho+s he
oupu o" System.out saemens in your code$
B.V.C.I.T.S 21
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

3.6. inking t!e package explorer "it! t!e code editor
The Pac'age E0plorer allo+s displaying he associaed "ile "rom he currenly seleced
edior$ 5or e0ample i" you +or'ing on Foo.java and you change in he edior o Var.java
hen he corresponding "ile +ill be seleced in he he <Pac'age e0plorer< View$
To aci!ae his beha!ior# press he buon <Lin' +ih Edior< in he <Pac'age e0plorer<
View$
3.#. Pro$le%s vie"
Sooner or laer you +ill run ino problems +ih your code or your pro4ec seup$ To
!ie+ he problems in your pro4ec you can use he <Problems< View +hich is par o" he
sandard %a!a Perspeci!e$ -" i is closed you can open i !ia :indo+s E Sho+ Die+ E
Problems$
You can con"igure he conen o" he <Problems< View$ 5or e0ample# o display he
problems "rom he currenly seleced pro4ec# selec <6on"igure 6onens< and se he
Scope o <On any elemen in he same pro4ec<$
B.V.C.I.T.S 22
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

4. Create yor !rst "ava progra#
The "ollo+ing describes ho+ o creae a minimal %a!a program using Eclipse$ - is
radiion in he programming +orld o creae a small program +hich +ries <>ello
:orld< o he console$ :e +ill adap his radiion and +ill +rie <>ello EclipseF< o he
console$
4.1. &reate pro'ect
Selec "rom he menu 5ile E Ge+ E %a!a pro4ec$ Ener de.vogella.eclipse.ide.first as
he pro4ec name$ Selec he "lag <6reae separae "olders "or sources and class "iles<$
B.V.C.I.T.S 23
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Press "inish o creae he pro4ec$ & ne+ pro4ec is creaed and displayed as a "older$
Open he de.vogella.eclipse.ide.first "older and e0plore he conen o" his "older$
4.2. &reate package
6reae a ne+ package$ & good con!enion is o use he same name "or he op pac'age
and he pro4ec$ 6reae here"ore he pac'age de.vogella.eclipse.ide.first$
Selec he "older src# righ clic' on i and selec Ge+ E Pac'age$
B.V.C.I.T.S 24
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

4.3. &reate Java class
:e +ill no+ creae a %a!a class$ Righ clic' on your pac'age and selec Ge+ E 6lass$
Ener MyFirstClass as he class name and selec he "lag <public saic !oid main
,SringHI args/<$
B.V.C.I.T.S 25
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

This creaes a ne+ "ile and opens an Editor o edi he source code o" his "ile$ :rie
he "ollo+ing code$

package de.vogella.eclipse.ide.first;
public class MyFirstClass {
public static void main(String[] args) {
System.out.println("Hello Eclipse!");
}
}

4.4. ()n *o)r pro'ect in Eclipse
Go+ run your code$ Righ clic' on your %a!a class and selec Run-as E %a!a
applicaion$
B.V.C.I.T.S 26
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

5inishedF You should see he oupu in he console$
4.5. Prepare to r)n progra% o)tside Eclipse +create 'ar ,le-
To run your %a!a program ouside o" Eclipse you need o e0por i as a jar "ile$ & jar
"ile is he sandard disribuion "orma "or %a!a applicaions$
Selec your pro4ec# righ clic' on i and selec Export$
B.V.C.I.T.S 27
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Selec %&R "ile# selec ne0$ Selec your pro4ec and mainain he e0por desinaion
and a name "or he 4ar "ile$ - named i myprogram.jar$
B.V.C.I.T.S 28
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Press "inish$ This creaes a 4ar "ile in your seleced oupu direcory$
4.6. ()n *o)r progra% o)tside Eclipse
Open a command shell# e$g$ under Microso" :indo+s selec Sar E Run and ype cmd
and press ener$ This should open a console$
S+ich o your oupu direcory# by yping cd path$ 5or e0ample i" your 4ar is locaed in
c:\temp ype cd c:\temp$
To run his program you need o include he 4ar "ile in your classpath$ The classpath
de"ines +ha %a!a classes are a!ailable o he %a!a runime$ You can add a jar "ile o
he classpah +ih he -jar opion$

java -classpath myprogram.jar de.vogella.eclipse.ide.first.MyFirstClass

-" you ype he command "rom abo!e and are in he correc direcory you should see
he <>ello EclipseF< oupu on he console$
B.V.C.I.T.S 29
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

6ongraulaionsF You creaed your "irs %a!a pro4ec# a pac'age# a %a!a class and you
ran his program inside and ouside Eclipse$
$. Content %ssist& 'ic( )i* and Class +avigation
5.1. &ontent assist
The conen assisan allo+s you o ge inpu help in an edior$ - can be in!o'ed by
pressing 6TRL;Space
5or e0ample ype syso in he edior o" a %a!a source "ile and hen press 6TRL;Space$
This +ill replace syso +ih System.out.println("")$
-" you ha!e a re"erence o an ob4ec# "or e0ample he ob4ec person o" he ype Person
and need o see iJs mehods# ype person. and press 6TRL;Space$
5.2. .)ick /ix
:hene!er Eclipse deecs a problem# i +ill underline he problemaic e0 in he edior$
Selec he underlined e0 and press 6TRL;* o see proposals ho+ o sol!e his
problem$
5or e0ample ype myBoolean = true; -" myBoolean is no ye de"ined# Eclipse +ill
highligh i as an error$ Selec he !ariable and press 6TRL;*# Eclipse +ill sugges
creaing a "ield or local !ariable$
B.V.C.I.T.S 30
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Kuic' 5i0 is e0remely po+er"ul$ - allo+s you o creae ne+ local !ariables and "ields
as +ell as ne+ mehods and ne+ classes$ - can pu ry-cach saemens around your
e0cepions$ - can assign a saemen o a !ariable and much more$
,. Opening a class
You can na!igae be+een he classes in your pro4ec !ia he <Pac'age E0plorer< View$
-n addiion you can open any class !ia posiioning he cursor on he class in an edior
and pressing 5L$ &lernai!ely# you can press 6TRL;Shi";T$ This +ill sho+ a dialog in
+hich you can ener he class name o open i$
B.V.C.I.T.S 31
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

-. Generating code
Eclipse has se!eral possibiliies o generae code "or you$ This can sa!e signi"ican
ime during de!elopmen$
5or e0ample Eclipse can o!erride mehods "rom superclasses and generae he
toString()# hashcode() and equals() mehods$ - can also generae geer and seer
mehods "or aribues o" your %a!a class$
You can "ind hese opions in he Source menu$
B.V.C.I.T.S 32
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

To es he source generaion# creae he "ollo+ing class in your
de.vogella.eclipse.ide.first pro4ec$

package de.vogella.eclipse.ide.first;
public class Person {
private String firstName;
private String lastName;
}

Selec Source E =enerae 6onsrucor "rom 5ields# mar' boh "ields and press <O'<$
B.V.C.I.T.S 33
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Selec Source E =enerae =eer and Seer# selec again boh your "ields and press
he <O'< buon$
Selec Source E =enerae oSring,/# mar' again boh "ields and press <O'<$
You creaed he "ollo+ing class:

package de.vogella.eclipse.ide.first;
public class Person {
private String firstName;
private String lastName;
public Person(String firstName, String lastName) {
super();
this.firstName = firstName;
this.lastName = lastName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
B.V.C.I.T.S 34
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
@Override
public String toString() {
return "Person [firstName=" + firstName + ", lastName=" + lastName
+ "]";
}
}

.. /e0actoring
Re"acoring is he process o" resrucuring he code +ihou changing his beha!ior$
5or e0ample renaming a %a!a class or mehod is a re"acoring aci!iy$
Eclipse suppors simple re"acoring aci!iies# "or e0ample renaming or mo!ing$ 5or
e0ample you can selec your class# righ clic' on i and selec Re"acor E Rename o
rename your class or mehod$ Eclipse +ill ma'e sure ha all calls in your :or'space
o your your class or mehod +ill also be renamed$
The "ollo+ing sho+s a screensho "or calling he <Rename< re"acoring on a class$
B.V.C.I.T.S 35
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

5or he ne0 e0amples change he code o" <My5irs6lass$4a!a< o he "ollo+ing$

package de.vogella.eclipse.ide.first;
public class MyFirstClass {
public static void main(String[] args) {
System.out.println("Hello Eclipse!");
int sum = 0;
for (int i = 0; i <= 100; i++) {
sum += i;
}
System.out.println(sum);
}
}

B.V.C.I.T.S 36
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

&noher use"ul re"acoring is o mar' code and creae a mehod "rom he seleced
code$ 5or his mar' he coding o" he <"or< loop# righ clic' and selec Re"acoring E
E0rac Mehod$ Use <calculaeSum< as name o" he ne+ mehod$
The resuling class should loo' li'e he "ollo+ing$

package de.vogella.eclipse.ide.first;
public class MyFirstClass {
public static void main(String[] args) {
System.out.println("Hello Eclipse!");
int sum = 0;
sum = calculateSum(sum);
System.out.println(sum);
}
private static int calculateSum(int sum) {
for (int i = 0; i <= 100; i++) {
sum += i;
}
return sum;
}
B.V.C.I.T.S 37
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

}

You can also e0rac srings and creae consans "rom hem$ Mar' "or his e0ample
<>ello EclipseF<# righ clic' on i and selec Re"acor E E0rac 6onsan$ Game your
ne+ consan <>ELLO<$
The resuling class should loo' li'e he "ollo+ing$

package de.vogella.eclipse.ide.first;
public class MyFirstClass {
private static final String HELLO = "Hello Eclipse!";
public static void main(String[] args) {
System.out.println(HELLO);
int sum = 0;
sum = calculateSum(sum);
System.out.println(sum);
}
private static int calculateSum(int sum) {
for (int i = 0; i <= 100; i++) {
sum += i;
}
return sum;
}
}
B.V.C.I.T.S 38
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science


Eclipse has much more re"acorings# in mos cases you should ge an idea o" he
per"ormed acion by he naming o" he re"acoring operaion$
Installing 1he %ndroid 234
5irs you +ill need o do+nload he &ndroid S.9 pac' $Aip archi!e# once do+nloaded
"ind a suiable insallaion locaion on your machine and e0rac he Aipped "iles$
Please noe: This insallaion locaion +ill be re"erred o as MS.9NROOT "rom no+ on
hrough his uorial
&lernai!ely you can add @ools o your roo pah +hich +ill pre!en he need o
speci"y he "ull pah o he ools direcory along +ih enabling you o run &ndroid
.ebug Bridge ,adb/ along +ih oher command line ools$
To add @ools:
in)x
1. Edit the ~/.bash_p!"i#e ! ~/.bash$ "i#es #!!%i&' "! a #i&e that sets the ()T* +aiab#e.
2. )dd the ",## path #!$ati!& t! -!, .S/0_122T/t!!#s #!$ati!& "! the ()T* +aiab#e.
3. I" &! ()T* #i&e e3ists -!, $a& add the #i&e b- t-pi&' the "!##!4i&'5
4. e3p!t ()T*6.7()T*859path t! -!, .S/0_122T/t!!#s:
0ac 1S 2
1. I& the h!;e die$t!- #!$ate the .bash_p!"i#e a&d #!$ati&' the ()T* +aiab#e add the
#!$ati!& t! -!, .S/0_122T/t!!#s "!#de.
Windo"s 2P 3 4ista
1. 1i'ht $#i$% !& the <- C!;p,te i$!& a&d se#e$t the p!peties tab.
2. Se#e$t the )d+a&$ed tab a&d $#i$% the E&+i!&;e&t Vaiab#es b,tt!&.
3. I& the &e4 dia#!' b!3 d!4b#e=$#i$% !& (ath >#!$ated ,&de S-ste; Vaiab#es? a&d t-pe
i& the ",## path #!$ati!& t! the t!!#s die$t!-.
The &ndroid S.9 also re7uires a suiable de!elopmen en!ironmen o +or' in# hereOs
he insallaion guides "or each o" he suppored en!ironmens$
%ndroid Eclipse 5lgin 6%317
-" you choose o use he Eclipse -.E as your &ndroid de!elopmen en!ironmen you
+ill ha!e he opporuniy o insall and run a plug-in called &ndroid .e!elopmen
Tools$ &.T comes +ih a !ariey o" po+er"ul ools and e0ensions ha +ill ma'e
creaing# running and debugging your &ndroid applicaions much easier and "aser$
-n order o do+nload and insall &.T you +ill "irs need o con"igure an Eclipse remoe
updae# his can achie!ed !ia he "ollo+ing seps:
B.V.C.I.T.S 39
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

1. Stat E$#ipse@ the& se#e$t >elp : So"+are Updaes : 5ind and -nsallP$
2. I& the dia#!' that appeas@ se#e$t Search "or ne+ "eaures o insall a&d pess Ge0.
3. (ess Ge+ Remoe Sie.
4. I& the es,#ti&' dia#!' b!3@ e&te a &a;e "! the e;!te site >e.'. )&d!id (#,'i&? a&d
e&te this as its A1B5 https5//d#=ss#.'!!'#e.$!;/a&d!id/e$#ipse/.
5. (ess O9.
6. C!, sh!,#d &!4 see the &e4 site added t! the sea$h #ist >a&d $he$%ed?.
7. (ess 5inish.
8. I& the s,bseD,e&t Sea$h 1es,#ts dia#!' b!3@ se#e$t the $he$%b!3 "! &ndroid Plugin
: Eclipse -negraion : &ndroid .e!elopmen Tools a&d pess Ge0.
9. 1ead the #i$e&se a'ee;e&t a&d the& se#e$t &ccep erms o" he license
agreemen@ i" app!piate.
10. (ess Ge0.
11. (ess 5inish.
12. The )/T p#,'i& is &!t si'&edE -!, $a& a$$ept the i&sta##ati!& a&-4a- b- pessi&'
-nsall &ll.
13. 1estat E$#ipse.
14. )"te estat@ ,pdate -!, E$#ipse pe"ee&$es t! p!i&t t! the S/0 !!t die$t!-
>.S/0_122T?5
Se#e$t :indo+ : Pre"erencesF t! !pe& the (e"ee&$es pa&e#. ><a$ 2S G5 Eclipse
: Pre"erences?
Se#e$t &ndroid "!; the #e"t pa&e#.
H! the S/0 B!$ati!& i& the ;ai& pa&e#@ pess Bro+se$.. a&d "i&d the S/0 !!t
die$t!-.
15. (ess &pply@ the& O9
Updating the %31 5lgin
To updae he &.T plugin o he laes !ersion# "ollo+ hese seps:
1. Se#e$t *e#p : S!"t4ae Apdates : Hi&d a&d I&sta##F.
2. Se#e$t Sea$h "! ,pdates !" the $,e&t#- i&sta##ed "eat,es a&d pess Hi&ish.
3. I" a&- ,pdate "! )/T is a+ai#ab#e@ se#e$t a&d i&sta##.
&lernai!ely:
1. Se#e$t *e#p : S!"t4ae Apdates : <a&a'e C!&"i',ati!&.
2. Ia+i'ate d!4& the tee a&d se#e$t )&d!id /e+e#!p;e&t T!!#s 9+esi!&:
3. Se#e$t S$a& "! Apdates ,&de )+ai#ab#e Tas%s.
8ow91o Use Eclipse 1o 3evelop %ndroid %pplications
-n order o begin de!elopmen on your &ndroid applicaions you +ill "irs need o
creae a ne+ &ndroid pro4ec and hen con"igure a launch con"iguraion$ Once
compleed you +ill ha!e he capabiliy o +rie# run and debug your &ndroid creaions$
The "ollo+ing secions belo+ +ill pro!ide you +ih he necessary insrucions o ge
you up and running +ih &ndroid pro!ided you ha!e insalled he &.T plugin ,as
pre!iously menioned/ in your Eclipse en!ironmen$
B.V.C.I.T.S 40
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

&reating 5 6e" 5ndroid Pro'ect
The &ndroid .e!elopmen Tools plugins 'indly pro!ides a :iAard "or seing up ne+
Pro4ecs +hich +ill allo+ us o creae ne+ Eclipse pro4ecs relai!ely 7uic'ly "or eiher
ne+ or e0ising code$
Selec 5ile Q Ge+ Q Pro4ec
1. Se#e$t )&d!id : )&d!id (!Je$t@ a&d pess Ie3t
2. Se#e$t the $!&te&ts "! the p!Je$t5
Se#e$t Ceate &e4 p!Je$t i& 4!%spa$e t! stat a p!Je$t "! &e4 $!de. E&te the
p!Je$t &a;e@ the base pa$%a'e &a;e@ the &a;e !" a si&'#e )$ti+it- $#ass t! $eate as
a st,b .Ja+a "i#e@ a&d a &a;e t! ,se "! -!, app#i$ati!&.
Se#e$t Ceate p!Je$t "!; e3isti&' s!,$e t! stat a p!Je$t "!; e3isti&' $!de. Ase
this !pti!& i" -!, 4a&t t! b,i#d a&d ,& a&- !" the sa;p#e app#i$ati!&s i&$#,ded 4ith
the S/0. The sa;p#e app#i$ati!&s ae #!$ated i& the sa;p#es/ die$t!- i& the S/0.
B!4se t! the die$t!- $!&tai&i&' the e3isti&' s!,$e $!de a&d $#i$% 20. I" the
die$t!- $!&tai&s a +a#id )&d!id ;a&i"est "i#e@ the )/T p#,'i& "i##s i& the pa$%a'e@
a$ti+it-@ a&d app#i$ati!& &a;es "! -!,.
Press 5inish$
Once compleed he &.T plugin +ill go ahead and creae he "ollo+ing "iles and
"olders as appropriae "or he ype o" pro4ec seleced:
s$/ ) "!#de that i&$#,des -!, st,b .Ja+a )$ti+it- "i#e.
es/ ) "!#de "! -!, es!,$es.
)&d!id<a&i"est.3;# The ;a&i"est "! -!, p!Je$t.
&reating 5 a)nc! &on,g)ration /or Eclipse
-n order o be able o run and debug your o+n Eclipse applicaions you mus "irs
creae a launch con"iguraion$ Simply# a launch con"ig is used o speci"y +hich pro4ec
o launch# +hich aci!iy o sar and he speci"ic emulaion opions o use$
To creae a launch con"iguraion "or he applicaion# please see he "ollo+ing seps:
*$ Selec Run Q Open Run .ialogP or Run Q Open .ebug .ialogP as appropriae$
($ -n he pro4ec ype lis on he le"# righ-clic' &ndroid &pplicaion and selec Ge+$
L$ Ener a name "or your con"iguraion$
C$ On he &ndroid ab# bro+se "or he pro4ec and &ci!iy o sar$
2$ On he Emulaor ab# se he desired screen and ne+or' properies# as +ell as any
oher emulaor sarup opions$
1$ You can se addiional opions on he 6ommon ab as desired$
8$ Press &pply o sa!e he launch con"iguraion# or press Run or .ebug ,as
appropriae/$
B.V.C.I.T.S 41
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

()nning and De$)gging an Eclipse 5pplication
Once boh seps * and ( ha!e been compleed and your pro4ec and launch con"igs
are up and running you +ill no+ be able o run or debug your applicaion$
5rom he Eclipse main menu# selec Run Q Run or Run Q .ebug as appropriae$ This
command +ill run or debug he mos recenly seleced applicaion$
To se or change he aci!e launch con"iguraion# use he Run con"iguraion manager#
+hich you can access hrough Run Q Open Run .ialogP or Run Q Open .ebug
.ialogP$
Running or debugging he applicaion +ill rigger he "ollo+ing acions:
Stats the e;,#at!@ i" it is &!t a#ead- ,&&i&'.
C!;pi#e the p!Je$t@ i" thee ha+e bee& $ha&'es si&$e the #ast b,i#d@ a&d i&sta##s the
app#i$ati!& !& the e;,#at!.
1,& stats the app#i$ati!&.
/eb,' stats the app#i$ati!& i& KLait "! deb,''eM ;!de@ the& !pe&s the /eb,'
pespe$ti+e a&d atta$hes the E$#ipse Na+a deb,''e t! the app#i$ati!&.
Developing 5ndroid 5pplications "it! 1t!er IDEs and 7ools
&lhough i is recommended you use Eclipse +ih he &ndroid plugin o de!elop your
applicaions# he S.9 also pro!ides ools +hich +ill enable you o de!elop +ih oher
-.EOs including inelli% ,alernai!ely you could 4us use Eclipse +ihou he plugin/$
&reating an 5ndroid Pro'ect
Bundled +ih he &ndroid S.9 is a program called aci!iy6reaory$ aci!iy6reaor +ill
generae a number o" RsubO "iles "or your chosen pro4ec alongside a build "ile$ This
can be used o eiher creae an &ndroid pro4ec "or ne+ code or "rom e0ising code$
5or Linu0 and Mac users he &ndroid S.9 pro!ides a Pyhon scrip called
aci!iy6reaor$py# +ih :indo+s users recei!ing a bach scrip called
aci!iy6reaor$ba$ The program is used in he same +ay regardless o" operaing
sysem$
-n order o run aci!iy6reaor and creae an &ndroid pro4ec# "ollo+ hese seps:
1. I& the $!;;a&d #i&e@ $ha&'e t! the t!!#s/ die$t!- !" the S/0 a&d $eate a &e4
die$t!- "! -!, p!Je$t "i#es. I" -!, ae $eati&' a p!Je$t "!; e3isti&' $!de@ $ha&'e
t! the !!t "!#de !" -!, app#i$ati!& i&stead.
2. 1,& a$ti+it-Ceat!. I& the $!;;a&d@ -!, ;,st spe$i"- a ",##-=D,a#i"ied $#ass &a;e as
a& a',;e&t. I" -!, ae $eati&' a p!Je$t "! &e4 $!de@ the $#ass epese&ts the
&a;e !" a st,b $#ass that the s$ipt 4i## $eate. I" -!, ae $eati&' a p!Je$t "!;
e3isti&' $!de@ -!, ;,st spe$i"- the &a;e !" !&e )$ti+it- $#ass i& the pa$%a'e.
C!;;a&d !pti!&s "! the s$ipt i&$#,de5
B.V.C.I.T.S 42
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Sou T"olderQ +hich ses he oupu direcory$ By de"aul# he oupu direcory is he
curren direcory$ -" you creaed a ne+ direcory "or your pro4ec "iles# use his opion
o poin o i$
Side inelli4# +hich generaes -nelli% -.E& pro4ec "iles in he ne+ly creaed pro4ec
>ereOs an e0ample:
@androidNlinu0Nsd'@oolsM $@aci!iy6reaor$py Sou mypro4ec
your$pac'age$name$&ci!iyGame
pac'age: your$pac'age$name
ouNdir: mypro4ec
aci!iyNname: &ci!iyGame
U@androidNlinu0Nsd'@oolsM
The aci!iy6reaor scrip generaes he "ollo+ing "iles and direcories ,bu +ill no
o!er+rie e0ising ones/:
)&d!id<a&i"est.3;# The app#i$ati!& ;a&i"est "i#e@ s-&$ed t! the spe$i"ied )$ti+it-
$#ass "! the p!Je$t.
b,i#d.3;# )& )&t "i#e that -!, $a& ,se t! b,i#d/pa$%a'e the app#i$ati!&.
s$/-!,/pa$%a'e/&a;e/)$ti+it-Ia;e.Ja+a The )$ti+it- $#ass -!, spe$i"ied !& i&p,t.
-!,_a$ti+it-.i;#@ -!,_a$ti+it-.ip@ -!,_a$ti+it-.i4s O!&#- 4ith the =ide i&te##iN "#a'P
i&te##iN p!Je$t "i#es.
es/ ) die$t!- t! h!#d es!,$es.
s$/ The s!,$e die$t!-.
bi&/ The !,tp,t die$t!- "! the b,i#d s$ipt.
Once complee you +ill no+ be able o mo!e your "older +here!er you choose "or
de!elopmen bu youOll need o bear in mind hen you +ill need o use he adb
program in he ools "older in order o send he "iles o he emulaor$
8o"97o :)ild 5n 5ndroid 5pplication
>ereOs ho+ o use he &n build$0ml "ile generaed by aci!iy6reaor o build your
applicaion$
1. I" -!, d!&Qt ha+e it@ -!, $a& !btai& )&t "!; the )pa$he )&t h!;e pa'e. I&sta## it a&d
;a%e s,e it is !& -!, e3e$,tab#e path.
2. Be"!e $a##i&' )&t@ -!, &eed t! de$#ae the N)V)_*2<E e&+i!&;e&t +aiab#e t!
spe$i"- the path t! 4hee the N/0 is i&sta##ed.I!te5 Lhe& i&sta##i&' N/0 !& Li&d!4s@
the de"a,#t is t! i&sta## i& the K(!'a; Hi#esM die$t!-. This #!$ati!& 4i## $a,se a&t t!
"ai#@ be$a,se !" the spa$e. T! "i3 the p!b#e;@ -!, $a& spe$i"- the N)V)_*2<E
+aiab#e #i%e this5 set N)V)_*2<E6$5R(!a~1RNa+aR. The easiest s!#,ti!&@ h!4e+e@ is
t! i&sta## N/0 i& a &!&=spa$e die$t!-@ "! e3a;p#e5 $5RJa+aRJd%1.6.0_02.
3. I" -!, ha+e &!t d!&e s! a#ead-@ "!##!4 the i&st,$ti!&s "! Ceati&' a Ie4 (!Je$t
ab!+e t! set ,p the p!Je$t.
4. C!, $a& &!4 ,& the )&t b,i#d "i#e b- si;p#- t-pi&' a&t i& the sa;e "!#de as the
b,i#d.3;# "i#e "! -!, p!Je$t. Ea$h ti;e -!, $ha&'e a s!,$e "i#e ! es!,$e@ -!,
sh!,#d ,& a&t a'ai& a&d it 4i## pa$%a'e ,p the #atest +esi!& !" the app#i$ati!& "! -!,
t! dep#!-.
B.V.C.I.T.S 43
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

8o"97o ()n 5n 5ndroid 5pplication
-n order o run a compiled applicaion you +ill "irs need o upload he $ap' "ile o
he @daa@app@ direcory in he emulaor using he adb ool:
1. Stat the e;,#at! >,& .S/0_*2<E/t!!#s/e;,#at! "!; the $!;;a&d #i&e?
2. 2& the e;,#at!@ &a+i'ate t! the h!;e s$ee& >it is best &!t t! ha+e that app#i$ati!&
,&&i&' 4he& -!, ei&sta## it !& the e;,#at!E pess the *!;e %e- t! &a+i'ate a4a-
"!; that app#i$ati!&?.
3. 1,& adb i&sta## ;-p!Je$t/bi&/9app&a;e:.ap% t! ,p#!ad the e3e$,tab#e. S!@ "!
e3a;p#e@ t! i&sta## the B,&a Ba&de sa;p#e@ &a+i'ate i& the $!;;a&d #i&e t!
.S/0_122T/sa;p#e/B,&aBa&de a&d t-pe ../../t!!#s/adb i&sta## bi&/B,&aBa&de.ap%
4. I& the e;,#at!@ !pe& the #ist !" a+ai#ab#e app#i$ati!&s@ a&d s$!## d!4& t! se#e$t a&d
stat -!, app#i$ati!&.
Please Goe: :hen insalling an aci!iy "or he "irs ime you may need o resar he
emulaor engine in order "or he aci!iy o sho+ up in he applicaion launcher or
be"ore any oher applicaion can call$ This is usually do+n o he "ac ha he pac'age
manager normally only e0amines mani"ess compleely on emulaor sar-up$
8o"97o 5ttac! a De$)gger to ;o)r 5pplication
The "ollo+ing secion deails ho+ o display debug in"ormaion direcly ono he
screen ,"or e0ample 6PU usage/$ - also sho+s you ho+ o hoo' up your -.E o debug
running applicaions on he emulaor$
The Eclipse plugin auomaically aaches a debugger bu you can con"igure oher
-.EOs o +ai on a debugging por by doing he "ollo+ing:
Sar he .al!i' .ebug Monior Ser!er ,..MS/ ool # +hich acs as a por "or+arding
ser!ice be+een your -.E and he emulaor$
1. Set !pti!&a# deb,''i&' $!&"i',ati!&s !& -!, e;,#at!@ s,$h as b#!$%i&' app#i$ati!&
stat,p "! a& a$ti+it- ,&ti# a deb,''e is atta$hed. I!te that ;a&- !" these deb,''i&'
!pti!&s $a& be ,sed 4ith!,t //<S@ s,$h as disp#a-i&' C(A ,sa'e ! s$ee& e"esh
ate !& the e;,#at!.
2. C!&"i',e -!, I/E t! atta$h t! p!t 8700 "! deb,''i&'. LeQ+e i&$#,ded i&"!;ati!&
hi'he ,p !& h!4 t! set ,p E$#ipse t! deb,' -!, p!Je$t.
8o"97o &on,g)re ;o)r IDE 7o 5ttac! 7o 7!e De$)gging Port
..MS +ill auomaically assign a speci"ic debugging por "or e!ery !irual machine
ha i deecs on he emulaor$ You mus eiher aach your -.E o ha por# or use a
de"aul por V8)) o connec o +hae!er applicaion is currenly seleced on he lis o"
disco!ered !irual machines$
-deally your -.E +ill aach o he applicaion running on he emulaor# sho+ing is
hreads and allo+ing you o suspend hem# inspec hem# or se brea'poins$ -" you
choose o W:ai "or debuggerX in he .e!elopmen seings panel# his +ill cause he
applicaion o run +hen Eclipse connecs here"ore you +ill need o se any
B.V.C.I.T.S 44
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

brea'poins you +an be"ore connecing$ -" you change he applicaion being
debugged or he W:ai "or debuggerX hen he sysem +ill 'ill he seleced currenly
running applicaion$
This can be handy i" your applicaion is in a bad sae# you can simply go o he
seings and oggle he chec'bo0 o 'ill i$
De$)gging 5ndroid
=oogle &ndroid has a "airly e0ensi!e se o" ools o help you debug your programs:
..MS S ) 'aphi$a# p!'a; that s,pp!ts p!t "!4adi&' >s! -!, $a& set ,p
bea%p!i&ts i& -!, $!de i& -!, I/E?@ s$ee& $apt,es !& the e;,#at!@ thead a&d
sta$% i&"!;ati!&@ a&d ;a&- !the "eat,es. C!, $a& a#s! ,& #!'$at t! etie+e -!,
B!' ;essa'es. See the #i&%ed t!pi$ "! ;!e i&"!;ati!&.
logca S /,;ps a #!' !" s-ste; ;essa'es. The ;essa'es i&$#,de a sta$% ta$e 4he&
the e;,#at! th!4s a& e!@ as 4e## as B!' ;essa'es. T! ,& #!'$at@ see the #i&%ed
t!pi$. F
I/<e;!-/ea#e> 763?5 <e;!-/ea#e >this60354bda0?5 Ceati&' 2621440 b-tes heap
at 03438db000
I/B!''e> 1858?5 'etVie4>? eD,esti&' ite; &,;be 0
I/B!''e> 1858?5 'etVie4>? eD,esti&' ite; &,;be 1
I/B!''e> 1858?5 'etVie4>? eD,esti&' ite; &,;be 2
//)$ti+it-<a&a'e> 763?5 St!ppi&'5 *ist!-1e$!d7409dbb20
$!;.'!!'#e.a&d!id.h!;e.)##)pps8
F
&ndroid Log= ) #!''i&' $#ass t! pi&t !,t ;essa'es t! a #!' "i#e !& the e;,#at!. C!,
$a& ead ;essa'es i& ea# ti;e i" -!, ,& #!'$at !& //<S >$!+eed &e3t?. )dd a "e4
#!''i&' ;eth!d $a##s t! -!, $!de.
To use he Log class# you 4us call Log$!,/ ,!erbose/# Log$d,/ ,debug/# Log$i,/
,in"ormaion/# Log$+,/ ,+arning/ or Log$e ,error/ depending on he imporance
you +ish o assign he log message$
Log$i,WMy&ci!iyX# WMy6lass$geDie+,/ Y Re7uesing iem number X ; posiion/
You can use logca o read hese messages
Trace!ie+ S )&d!id $a& sa+e a #!' !" ;eth!d $a##s a&d ti;es t! a #!''i&' "i#e that
-!, $a& +ie4 i& a 'aphi$a# eade $a##ed Ta$e+ie4. See the #i&%ed t!pi$ "! ;!e
i&"!;ati!&.
Eclipse plugin S The E$#ipse )&d!id p#,'i& i&$!p!ates a &,;be !" these t!!#s
>)/B@ //<S@ #!'$at !,tp,t@ a&d !the ",&$ti!&a#it-?. See the #i&%ed t!pi$ "! ;!e
i&"!;ati!&.
.ebug and Tes .e!ice Seings S &ndroid e0poses se!eral seings ha e0pose
use"ul in"ormaion such as 6PU usage and "rame rae$
B.V.C.I.T.S 45
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

De$)g and 7est Settings on t!e Device
&ndroid enables you o se a number o" opions ha +ill ma'e i "ar easier o es and
debug your applicaions$
To ge o he de!elopmen seings page on he emulaor simply go o .e! Tools Q
.e!elopmen Seings$ This +ill in urn open up he de!elopmen seings page +ih
he "ollo+ing opions ,among ohers/:
/eb,' app Se#e$ts the app#i$ati!& that 4i## be deb,''ed. C!, d! &!t &eed t! set this
t! atta$h a deb,''e@ b,t setti&' this +a#,e has t4! e""e$ts5
- +ill pre!en &ndroid "rom hro+ing an error i" you pause on a brea'poin "or a long
ime +hile debugging$
- +ill enable you o selec he :ai "or .ebugger opion o pause applicaion sarup
unil your debugger aaches ,described ne0/$
Lait "! deb,''e B#!$%s the se#e$ted app#i$ati!& "!; #!adi&' ,&ti# a deb,''e
atta$hes. This 4a- -!, $a& set a bea%p!i&t i& !&Ceate>?@ 4hi$h is i;p!ta&t t!
deb,' the stat,p p!$ess !" a& )$ti+it-. Lhe& -!, $ha&'e this !pti!&@ a&- $,e&t#-
,&&i&' i&sta&$es !" the se#e$ted app#i$ati!& 4i## be %i##ed. I& !de t! $he$% this b!3@
-!, ;,st ha+e se#e$ted a deb,' app#i$ati!& as des$ibed i& the pe+i!,s !pti!&. C!,
$a& d! the sa;e thi&' b- addi&' 4aitH!/eb,''e>? t! -!, $!de.
I;;ediate#- dest!- a$ti+ities Te##s the s-ste; t! dest!- a& a$ti+it- as s!!& as it is
st!pped >as i" )&d!id had t! e$#ai; ;e;!-?. This is +e- ,se",# "! testi&' the
!&HeeTe>B,&d#e? / !&Ceate>a&d!id.!s.B,&d#e? $!de path@ 4hi$h 4!,#d !the4ise
be di""i$,#t t! "!$e. Ch!!si&' this !pti!& 4i## p!bab#- e+ea# a &,;be !" p!b#e;s i&
-!, app#i$ati!& d,e t! &!t sa+i&' state.
Sh!4 s$ee& ,pdates H#ashes a ;!;e&ta- pi&% e$ta&'#e !& a&- s$ee& se$ti!&s
that ae bei&' eda4&. This is +e- ,se",# "! dis$!+ei&' ,&&e$essa- s$ee&
da4i&'.
Sh!4 C(A ,sa'e /isp#a-s C(A ;etes at the t!p !" the s$ee&@ sh!4i&' h!4 ;,$h
the C(A is bei&' ,sed. The t!p ed ba sh!4s !+ea## C(A ,sa'e@ a&d the 'ee& ba
,&de&eath it sh!4s the C(A ti;e spe&t i& $!;p!siti&' the s$ee&. I!te5 C!, $a&&!t
t,& this "eat,e !"" !&$e it is !&@ 4ith!,t estati&' the e;,#at!.
Sh!4 s$ee& H(S /isp#a-s the $,e&t "a;e ate. <!st#- ,se",# "! 'a;es t! see the
!+ea## "a;e ate the- ae a$hie+i&'. I!te5 C!, $a&&!t t,& this "eat,e !"" !&$e it is
!& 4ith!,t estati&' the e;,#at!.
Sh!4 ba$%'!,&d /isp#a-s a ba$%'!,&d patte& 4he& &! a$ti+it- s$ee&s ae +isib#e.
This t-pi$a##- d!es &!t happe&@ b,t $a& happe& d,i&' deb,''i&'.
).) /EASIBI6IT+ STU+
4easi#ility st%dy is cond%cted once the pro#le! is clearly %nderstood 4easi#ility st%dy is a
B.V.C.I.T.S 46
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

hi"h le(el caps%le (ersion o& the entire syste! analysis and desi"n process The o#1ecti(e is to
deter!ine -%ickly at a !ini!%! e0pense how to sol(e a pro#le! The p%rpose o& &easi#ility is not to
sol(e the pro#le! #%t to deter!ine i& the pro#le! is worth sol(in"
The syste! has #een tested &or &easi#ility in the &ollowin" points
I Technical 4easi#ility
II Econo!ical 4easi#ility
III >perational 4easi#ility
I. Technic!l /e!si3ility
The pro1ect entitles Disease detecti(e and "%ide is technically &easi#ility #eca%se o& the
#elow !entioned &eat%re The pro1ect was de(eloped in Android with (ery rich Graphical User
Inter&ace
It pro(ides the hi"h le(el o& relia#ility) a(aila#ility and co!pati#ility All these !ake Android
an appropriate lan"%a"e &or this pro1ect Th%s the e0istin" so&tware Android is a power&%l lan"%a"e
II. Econo5ic!l /e!si3ility
)&d!id is a& !pe&=s!,$e s!"t4ae sta$% "! ;!bi#e de+i$es@ a&d a $!esp!&di&'
!pe&=s!,$e p!Je$t #ed b- U!!'#e. Le $eated )&d!id i& esp!&se t! !, !4& e3peie&$es
#a,&$hi&' ;!bi#e apps. Le 4a&ted t! ;a%e s,e that thee 4as &! $e&ta# p!i&t !" "ai#,e@ s!
that &! i&d,st- p#a-e $a& esti$t ! $!&t!# the i&&!+ati!&s !" a&- !the. ThatVs 4h- 4e
$eated )&d!id@ a&d ;ade its s!,$e $!de !pe&.
III. O(e'!tion!l /e!si3ility
In this pro1ect) the !ana"e!ent will know the details o& each pro1ect where he !ay #e
presented and the data will #e !aintained as decentraliAed and i& any in-%ires &or that partic%lar
contract can #e known as per their re-%ire!ents and necessaries
The %ser can easily search the diseases and the correspondin" sy!pto!s and preca%tions This
application pro(ides diseases &or #oth children and elders so that anyone can search and access the
in&or!ation This application is operationally &easi#le #eca%se the %ser can interact with the syste! #y
1%st clickin" search #%tton
B.V.C.I.T.S 47
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Desi"n is the &irst step in the de(elop!ent phase &or any techni-%es and principles &or the
p%rpose o& de&inin" a de(ice) a process or syste! in s%&&icient detail to per!it its physical realiAation
B.V.C.I.T.S 48
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

>nce the so&tware re-%ire!ents ha(e #een analyAed and speci&ied the so&tware desi"n in(ol(es
three technical acti(ities 5 desi"n) codin") i!ple!entation and testin" that are re-%ired to #%ild and
(eri&y the so&tware
The desi"n acti(ities are o& !ain i!portance in this phase) #eca%se in this acti(ity) decisions
%lti!ately a&&ectin" the s%ccess o& the so&tware i!ple!entation and its ease o& !aintenance are !ade
These decisions ha(e the &inal #earin" %pon relia#ility and !aintaina#ility o& the syste! Desi"n is the
only way to acc%rately translate the c%sto!ers re-%ire!ents into &inished so&tware or a syste!
Desi"n is the place where -%ality is &ostered in de(elop!ent So&tware desi"n is a process
thro%"h which re-%ire!ents are translated into a representation o& so&tware So&tware desi"n is
cond%cted in two steps 2reli!inary desi"n is concerned with the trans&or!ation o& re-%ire!ents into
data
-.1 ,OU6E ESI$&

,o#ules

Diseases &or children
Diseases &or elders
Sy!pto!s
2reca%tions
ise!ses fo' chil#'en
4irst the %ser click on the search disease #%tton then it will show two #%ttons diseases &or
children and diseases &or elders 'hene(er the %ser click on the diseases &or children then it
will display a list o& diseases that the children a&&ected
ise!ses fo' el#e's
'hene(er the %ser click on the diseases &or elders it displays a list o& diseases >nce the %ser
click on a disease then it will display the in&or!ation re"ardin" the disease
Sy5(to5s
>nce a %ser click on the disease it shows sy!pto!s &or the partic%lar disease
P'ec!utions
B.V.C.I.T.S 49
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

A&ter readin" the sy!pto!s click on preca%tions it shows the necessary preca%tions to #e
taken
-.% U,6 IA$RA,S
U*B stands &or Uni&ied *odelin" Ban"%a"e U*B is a lan"%a"e &or speci&yin") (is%aliAin"
and doc%!entin" the syste! This is the step while de(elopin" any prod%ct a&ter analysis The "oal
&ro! this is to prod%ce a !odel o& the entities in(ol(ed in the pro1ect which later need to #e #%ilt The
representation o& the entities that are to #e %sed in the prod%ct to de(elop need to #e desi"ned
There are (ario%s kinds o& !ethods in so&tware desi"n6
They are as &ollows6
Use case Dia"ra!
Class Dia"ra!
Se-%ence Dia"ra!
Colla#oration Dia"ra!
Acti(ity Dia"ra!
State chat Dia"ra!
USE CASE IA$RA,
Acto':
A coherent set o& roles that %sers o& %se cases play when interactin" with the %se Mcases
Use c!se:
A description o& se-%ence o& actions) incl%din" (ariants) that a syste! per&or!s that yields an
o#ser(a#le res%lt o& (al%e o& an actor
A Use case is a description o& set o& se-%ence o& actions Graphically it is rendered as an
ellipse with solid line incl%din" only its na!e Use case dia"ra! is a #eha(ioral dia"ra! that shows a
set o& %se cases and actors and their relationship It is an association #etween the %se cases and actors
An actor represents a real5world o#1ect
USE CASE IA$RA,
B.V.C.I.T.S 50
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Sea$h /iseases
S-;pt!;s
C!&"i; disease
Ase
(e$a,ti!&s
C6ASS IA$RA,
Class is nothin" #%t a str%ct%re that contains #oth (aria#les and !ethods The Class Dia"ra!
shows a set o& classes) inter&aces) and colla#orations and their relatin" ships There is !ost co!!on
dia"ra! in !odelin" the o#1ect oriented syste!s and are %sed to "i(e the static (iew o& a syste! It
shows the dependency #etween the classes that can #e %sed in o%r syste!
The inte'!ctions 3et2een the 5o#ules o' cl!sses of ou' ('oAects !'e sho2n sho2n 3elo2. E!ch 3loc:
cont!ins Cl!ss &!5e< V!'i!3les !n# ,etho#s. A #esc'i(tion of set of o3Aects th!t sh!'e the s!5e
!tt'i3utes o(e'!tions< 'el!tionshi(s< !n# se5!ntics.
B.V.C.I.T.S 51
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

/iseases "! $hi#de&
disease &a;e
disease t-pe
/,ati!&
E""e$t>?
(e$a,ti!&s
t-pe
s,''ested ite;s
Teat;e&t>?
S-;pt!;s
$ate'!-
/,ati!&
/iseases "! a## a'es
disease &a;e
disease t-pe
/,ati!&
E""e$t>?
SE.UE&CE IA$RA,
Se-%ence dia"ra! and colla#oration dia"ra! are called INTE,ACTI>N DIAG,A*S An
interaction dia"ra! shows an interaction) consistin" o& set o& o#1ects and their relationship incl%din"
the !essa"es that !ay #e dispatched a!on" the!
(e$a,ti!&s
5 Ase
Sea$h /iseases "!
$hi#de&
/iseases "!
e#des
S-;pt!;s
Sea$h disease
"! $hi#de&
"! e#des
Vie4 the s-;pt!;s
"!##!4 the pe$a,ti!&s
+ie4 the s-;pt!;s
"!##!4 the pe$a,ti!&s
B.V.C.I.T.S 52
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

CO66ABORATIO& IA$RA,
A colla#oration dia"ra! is an introd%ction dia"ra! that e!phasiAes the str%ct%ral or"aniAation
o& the o#1ects that send and recei(e !essa"es Graphically a colla#oration dia"ra! is a collection o&
(ertices and arcs

B.V.C.I.T.S 53
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

ACTIVIT+ IA$RA,
Bist !" $hi#d
diseases
S-;pt!;s "!
diseases
(e$a,ti!&s
Bist !" diseases
"! e#des
S-;pt!;s
(e$a,ti!&s
Sea$h
"! $hi#de&
"! e#des
Bist !"
diseases
B.V.C.I.T.S 54
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

STATE C7ART IA$RA,

Sea$h
/iseses "!
$hi#de&/e#des
Bist !"
diseases
S-;pt!;s
(e$a,ti!&s
-.) USECASE SCE&ARIOS
Use case dia"ra!s !odel #eha(ior within a syste! and helps the de(elopers %nderstand o&
what the %ser re-%ire The stick !an represents whats called an actor
Use case dia"ra! can #e %se&%l &or "ettin" an o(erall (iew o& the syste! and clari&yin" that can
do and !ore i!portantly what they cant do
Use case dia"ra! consists o& %se cases and actors and shows the interaction #etween the %se
case and actors
The p%rpose is to show the interactions #etween the %se case and actor
To represent the syste! re-%ire!ents &ro! %sers perspecti(e
An actor co%ld #e the end5%ser o& the syste! or an e0ternal syste!
B.V.C.I.T.S 55
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

USECASE /6O0 O/ EVE&TS
:/Search
+ere the end %ser interact with the syste! #y
clickin" the search #%tton then all the actions
wo%ld takes place
7/ Diseases &or children
A&ter clickin" the search #%tton the %ser has to
select diseases &or children3diseases &or elders
I& a %ser click on children then it will display
list o& diseases &or children
K/ Diseases &or elders
A&ter clickin" the search #%tton the %ser has to
select diseases &or children3diseases &or elders
I& a %ser click on elders then it will display list
o& diseases &or elders
</ Sy!pto!s >nce a %ser click on a disease then it will display
the sy!pto!s &or a partic%lar disease
8/ 2reca%tions Accordin" to the sy!pto!s he con&ir! the disease
and &ollow the preca%tions #y clickin" the
preca%tions #%tton
B.V.C.I.T.S 56
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science



B.V.C.I.T.S 57
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

I!ple!entation is the sta"e where the theoretical desi"n is t%rned into a workin" syste! The
!ost cr%cial sta"e that achie(es a new s%ccess&%l syste! and "i(es con&idence on the new syste! &or
the %sers will work e&&iciently and e&&ecti(ely
The syste! can #e i!ple!ented only a&ter thoro%"h testin" is done and i& it is &o%nd to work
accordin" to the speci&ication It in(ol(es care&%l plannin") in(esti"ation o& the c%rrent syste! and its
constraints on i!ple!entation) desi"n o& !ethods to achie(e the chan"e o(er and an e(al%ation o&
chan"e o(er !ethods a part &ro! plannin" Two !a1or tasks o& preparin" the i!ple!entation are
ed%cation and trainin" o& the %sers and testin" o& the syste! The !ore co!ple0 the syste! is
i!ple!ented) the !ore in(ol(e!ent will #e the syste!s analysis and desi"n e&&ort re-%ired 1%st &or
i!ple!entation
The i!ple!entation phase co!prises o& se(eral acti(ities The re-%ired hardware and so&tware
ac-%isition is carried o%t The syste! !ay re-%ire so!e so&tware to #e de(eloped 4or this) pro"ra!s
are written and tested The %ser then chan"es o(er to his new &%lly tested syste! and the old syste! is
discontin%ed
B.1 SO/T0ARE EVE6OP P6AT/OR,
B.% SA,P6E COE
,!in.A!"!
package sss.project;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.Onlick!istener;
import android.widget.Button;
pu"lic class #rojectActivity e$tends Activity %
&'' alled w(en t(e activity is first created. '&
)Override
pu"lic void onreate*Bundle savedInstance+tate, %
super.onreate*savedInstance+tate,;
setontentView*-.layout.main,;
Button "tn.*Button, findViewById*-.id."utton/,;
"tn.setOnlick!istener*new Onlick!istener*, %
)Override
pu"lic void onlick*View arg0, %
&& 1O2O Auto3generated met(od stu"
Intent i.new Intent*#rojectActivity.t(is4age.class,;
startActivity*i,;
5
5,;
5 5
B.V.C.I.T.S 58
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

package sss.project;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.Onlick!istener;
import android.widget.Button;
pu"lic class age e$tends Activity%
)Override
protected void onreate*Bundle savedInstance+tate, %
&& 1O2O Auto3generated met(od stu"
super.onreate*savedInstance+tate,;
setontentView*-.layout.age,;
Button "tn/.*Button, findViewById*-.id."utton/,;
Button "tn6.*Button, findViewById*-.id."utton6,;
"tn/.setOnlick!istener*new Onlick!istener*, %
)Override
pu"lic void onlick*View arg0, %
&& 1O2O Auto3generated met(od stu"
Intent i.new Intent*age.t(is4list.class,;
startActivity*i,;
5
5,;
"tn6.setOnlick!istener*new Onlick!istener*, %
)Override
pu"lic void onlick*View arg0, %
&& 1O2O Auto3generated met(od stu"
Intent i.new Intent*age.t(is4list7.class,;
startActivity*i,;
5
5,;
5
5
6ist.A!"!
package sss.project;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
B.V.C.I.T.S 59
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

import android.widget.AdapterView;
import android.widget.AdapterView.OnItemlick!istener;
import android.widget.ArrayAdapter;
import android.widget.!istView;
import android.widget.1e$tView;
pu"lic class list e$tends Activity%
+tring s89. %:;(ooping coug( :4:1(ree3day3fever *roseola infantum,
:4:<and4 foot and mout( disease:4:+carlet fever :4:Measles:4:
Meningitis:4:Mumps:4: -u"ella:4:1etanus:4: 2ip(t(eria:4:#olio:4:=>ift(=
disease *eryt(ema infectiosum,:5;
)Override
protected void onreate*Bundle savedInstance+tate, %
&& 1O2O Auto3generated met(od stu"
super.onreate*savedInstance+tate,;
setontentView*-.layout.list,;
1e$tView tv.*1e$tView, findViewById*-.id.te$tView/,;
!istView l. *!istView, findViewById*-.id.lv/,;
ArrayAdapter?+tring@ aa.new
ArrayAdapter?+tring@*t(is4android.-.layout.simpleAlistAitemA/4s,;
l.setAdapter*aa,;
l.setOnItemlick!istener*new OnItemlick!istener*, %
)Override
pu"lic void onItemlick*AdapterView?B@ arg04 View arg/4
int arg74
long argC, %
&& 1O2O Auto3generated met(od stu"
if*arg7..0,
%
Intent i.new Intent*list.t(is4symptoms.class,;
startActivity*i,;
5
else if*arg7../,
%
Intent i.new Intent*list.t(is4c(illdis7.class,;
startActivity*i,;
5
else if*arg7..7,
%
Intent i.new Intent*list.t(is4c(ilddisC.class,;
startActivity*i,;
5
else if*arg7..C,
%
Intent i.new Intent*list.t(is4c(ilddis6.class,;
startActivity*i,;
5
else if*arg7..6,
%
Intent i.new Intent*list.t(is4c(ilddisD.class,;
startActivity*i,;
5
else if*arg7..D,
B.V.C.I.T.S 60
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

%
Intent i.new Intent*list.t(is4c(ilddisE.class,;
startActivity*i,;
5
else if*arg7..E,
%
Intent i.new Intent*list.t(is4c(ilddisF.class,;
startActivity*i,;
5
else if*arg7..F,
%
Intent i.new Intent*list.t(is4c(ilddisG.class,;
startActivity*i,;
5
else if*arg7..G,
%
Intent i.new Intent*list.t(is4c(ilddisH.class,;
startActivity*i,;
5
else if*arg7..H,
%
Intent i.new
Intent*list.t(is4c(ilddis/0.class,;
startActivity*i,;
5
else if*arg7../0,
%
Intent i.new
Intent*list.t(is4c(ilddis//.class,;
startActivity*i,;
5
else if*arg7..//,
%
Intent i.new
Intent*list.t(is4c(ilddis/7.class,;
startActivity*i,;
5
5
5,;
5 5
Main.xml
?B$ml version.:/.0: encoding.:I1>3G:B@
3?-elative!ayout androidJorientation.:vertical:
androidJ"ackground.:)drawa"le&imageF: androidJlayoutA(eig(t.:fillAparent:
androidJlayoutAwidt(.:fillAparent:
$mlnsJandroid.:(ttpJ&&sc(emas.android.com&apk&res&android:@ ?Button
androidJlayoutA(eig(t.:wrapAcontent: androidJlayoutAwidt(.:wrapAcontent:
androidJte$t.:+earc(: androidJlayoutAmarginBottom.:7Ddp:
androidJlayoutAcenter<oriKontal.:true:
androidJlayoutAalign#arentBottom.:true: androidJid.:)Lid&"utton/:&@
?&-elative!ayout@
B.V.C.I.T.S 61
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science


B.V.C.I.T.S 62
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

So&tware testin" is a critical ele!ent o& so&tware -%ality ass%rance and represents the %lti!ate
re(iew o& speci&ication) desi"n and codin" Testin" is the e0pos%re o& the syste! to trail inp%t to see
whether it prod%ces correct o%tp%t
Testing Ph!ses:8
So&tware testin" incl%des the &ollowin"6
Test acti(ities are deter!ined and test data selected
The test is cond%cted and test res%lts are co!pared with the e0pected res%lts
The testin" phase is an i!portant part o& so&tware de(elop!ent It is the co!p%teriAed syste!
will help in a%to!ate process o& &indin" errors and !issin" operations and also a co!plete (eri&ication
to deter!ine whether the o#1ecti(es are !et and the %ser re-%ire!ents are satis&ied
So&tware testin" is carried o%t in three steps6
The &irst incl%des unit testing) where in each !od%le is tested to pro(ide its correctness)
(alidity and also deter!ine any !issin" operations and to (eri&y whether the o#1ecti(es ha(e #een !et
Errors are noted down and corrected i!!ediately Unit testin" is the i!portant and !a1or part o& the
pro1ect So errors are recti&ied easily in partic%lar !od%le and pro"ra! clarity is increased In this
pro1ect entire syste! is di(ided into se(eral !od%les and is de(eloped indi(id%ally So %nit testin" is
cond%cted to indi(id%al !od%les
The second step incl%des Integration testing It need not #e the case) the so&tware whose
!od%les when r%n indi(id%ally and showin" per&ect res%lts) will also show per&ect res%lts when r%n as
a whole The indi(id%al !od%les are clipped %nder this !a1or !od%le and tested a"ain and (eri&ied the
res%lts This is d%e to poor inter&acin") which !ay res%lts in data #ein" lost across an inter&ace A
!od%le can ha(e inad(ertent) ad(erse e&&ect on any other or on the "lo#al data str%ct%res) ca%sin"
serio%s pro#le!s
The &inal step in(ol(es validation and testing which deter!ines which the so&tware &%nctions
as the %ser e0pected +ere also so!e !odi&ications were In the co!pletion o& the pro1ect it is satis&ied
&%lly #y the end %ser
C.1 TESTI&$ /U&A,E&TA6S
Testin" is a process o& e0ec%tin" pro"ra! with the intent o& &indin" error A "ood test case is
one that has hi"h pro#a#ility o& &indin" an %ndisco(ered error I& testin" is cond%cted s%ccess&%lly it
%nco(ers the errors in the so&tware Testin" cannot show the a#sence o& de&ects) it can only show that
so&tware de&ects present
C.% TEST CASES
B.V.C.I.T.S 63
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

Test cases are deri(ed to ens%re that all state!ents in the pro"ra! ha(e #een e0ec%ted at least
once d%rin" testin" and that all lo"ical conditions ha(e #een e0ec%ted
Usin" 'hite5$o0 testin" !ethods) the so&tware en"ineer can dri(e test cases that
G%arantee that lo"ical decisions on their tr%e and &alse sides
E0ercise all lo"ical decisions on their tr%e and &alse sides
E0ec%te all loops at their #o%ndaries and within their operational #o%nds
E0ercise internal data str%ct%re to ass%re their (alidity
Test
&o
In(ut E9(ecte# Beh!"oiu'
O3se'"e#
Beh!"iou'
St!tus
PDP!sse#
/D/!ile#
: Click >n Child Disease
It Displays Bist >&
child Diseases
Displays Bist >&
child Diseases
2
7 Click on Elder Disease
It Displays Bist >&
Elders Diseases
Displays Bist >&
Elder Diseases
2
K Select Disease
It Displays Bist >&
Disease
It displays Bist >&
Disease
2
< Select Sy!pto!s
It Displays the
Sy!pto!s >& Disease
It displays the
Sy!pto!s >&
Disease
2
8 Select 2reca%tions
It Displays the
2reca%tions
It displays the
2reca%tions
2
B.V.C.I.T.S 64
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

B.V.C.I.T.S 65
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

The %sers enter into the application #y clickin" the search #%tton
Users can select the diseases &or children3elders #y clickin" the correspondin" #%ttons
It displays the list o& children diseases accordin" to the %sers selection
It displays the list o& diseases &or elders accordin" to the %sers selection
Sy!pto!s and preca%tions are displayed accordin" to the %sers selected disease
B.V.C.I.T.S 66
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

B.V.C.I.T.S 67
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

This is the ho!e pa"e &or the application

This is the pa"e &or selectin" the disease &or children and elder
B.V.C.I.T.S 68
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science



Bist o& diseases &or children
B.V.C.I.T.S 69
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science


Sy!pto!s &or a disease


2reca%tions &or a disease
B.V.C.I.T.S 70
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science


B.V.C.I.T.S 71
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

E. CO&C6USIO& & /UTURE E&7A&CE,E&TS
B.V.C.I.T.S 72
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

4inally) this application pro(ides in&or!ation re"ardin" the disease sy!pto!s and preca%tions It
pro(ides in&or!ation &or #oth children and elders So anyone can %se this application It is easy to %se)
since it %ses the GUI this GUI is de(eloped %sin" I*B to capt%re the in&or!ation &ro! the %ser so it
is easy to de(elop the %ser &riendly screens #y %sin" I*B It has #een thoro%"hly tested and
i!ple!ented
B.V.C.I.T.S 73
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

E.% BIBI6IO$RAP7+
The &ollowin" #ooks were re&erred d%rin" the analysis and e0ec%tion phase o& the pro1ect
1. SO/T0ARE E&$I&EERI&$ 8 #y ,o"er S 2ress!an
%. PRO/ESSIO&A6 A&ROI % EVE6OP,E&T8,eto !ier
). T7E BUS+ COERS $UIE TO AVA&CE A&ROI EVE6OP,E&T8*ark B *%rphy
-. A E/I&ITIVE $UIE TO S.6ITE8Grant Allen and *ike >wens
B. U&I/IE ,OE6I&$ 6A&$UA$E 8 #y Gradi $ooch) I(ar ?aco#son) ?a!es ,a! $a%"h
C. I,A$ES 8 Goo"le Search
wwwde(eloperandroidco!

B.V.C.I.T.S 74
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

B.V.C.I.T.S 75
DISEASE DETECTIVE AND GUIDE
BVC Institute of Technology & Science

You might also like