Paper coe - Cs-502 Page No.
Date
Oparating Syste
Basie of 4odhroid Op
UnitIEnuiron nant Seup
Setup Java Develepment kit (sDK), tnsoid sDK
Ecipso TDE Apdoid Devaloprnt tools (4DT) Plugin
Creato Ardroid Virtua Davice A4 rehitechture; SduK
krned Libari e Angroid Runtime 4ppication
ErameOGk.
4pplicaton Componant
4pplicaion Component 4ctiuitiey Sorice
Serice3 Broadcazt
Roceiuis Content Prroui ders 4dditona components
Oreole Android4PPuca
4ppioation o 4hdsoid
Elle
4ppieation Tbe ain 4et uity File The Manifa1t
gle The
Thesnpicaton
stigs le The
Running tha J4ppicaHon
RFile The Layout
layout fle
DoitTReoCey gnd 4ecelsing
Altarnaive pats0 Accesin esoUrcel
Lntentt gnd Pilter
Dntent obj saBs Action 4ndoid Tntent tandard
Aetiong. Data Eehra, Haz Q9mpon ent
Name, Typeg of Lntet Fapicit Intentt,Tpiat Tntent.
" UI Layouts.
Agdaoid ayout Typa Relatue Layout 4trib fttaibue
uBas
Sub- aaH uity Layout
4-5doid 0î contsols,
Tet Via attribufe? 4uto Comlete TezWien 4tibueg
utton ttibuag Buton Attbutes cheskBoX
baleutes Togalaêuttoh 4ttribute Radio Btton
4ttibutes
Eyent ttanliny
Event istenos & Eent Hand|ers Event istene&
Regishrat ion Stylag and Thene Deining style
gle nheritence, nootid Tharaj Desat Gtyla
Cutom lompon ent
pBe Curtorn compong nt3
Sinple
Booky-O 4ndoid Tutorsial Simply Easy Leaning by
Tuterialspoint. com
Prosarsion Andoid t ieafion Developmeut :
Reomei er ro
4ppics
Pubicaio
J o i t L
Page No.
Date
Eovionrgent Seup
4ndrod - 4ndsoid is q sotarse
Uouz bofed operaio ystam -fos mobile deuice
Sueh tabletconputorp
tabl and satphon23
It is develop ed by Qod oter thel
Opon
ba ndset aig (OH4)
Tbe goal of 4ndoroid proieot is to eroate g
produet that îinpaov.3 the
mobile 2per ence for end set.
History o Andotd Ioitially 4ndy Rubin founded
4ndoid Encorporration in palo alto caifornig unitec
9tafey in 0ctobar Do0%,
In I7h ondrotd ncoTpoai
Since then tbe Subserdaty of
RDeorprsaHon.
The key e9 ploy eel godotd ancorsporr afton are
4ndy Rubin Ricb Miner chos hite Niek Se9d.
the nick ngre of 4ndy Rubin given by
Qomookerf beoaule Love to Robugt
4ndoid 4ndy t Droid,
Oniginelly int nded fe Qgmera but shit it ed to
(Soatttphore? laer becaue o o yarket fo
the developrgent a
andoid
ftqndreid mobilo in HOe a unehed idt
gndrroid mobile o
II
4ndroid Versiou
Versions Code ame 4Pr level
.5
Cupcake
1.6 Donut
2.1 Ecla
2,2 Froya
(S) 2.3
3.| R3.3 HogyCormb l2and 13
4.0 Loecrea Sandwiteb
84.4,2, 4.3 Jal ly Baan l6,17 &8
1o)
)
S.
6.0
lollipep
Morshmelow
2o-25
(13) 8.O
Nasot 6-27
Envison ment Stup
Tava development kit(JDA) Softagre developrment
kit (SDK), Elipse IDE 4Ddroid Deuelopment toels
pluin
Bettp -feo Andoid 9DK
http:// wwK. developu, ondroid, com /sDk/ igdez htod
Setup JDk yoy cgn download the latet versioy of
Java' JDK Frorm racle Jav Slte - Java SE Doanloady
You will ind inshrueiong fer installkn JDk in
Downlood ed l,folloo the given inshefiouy. to
instal Qnd configuro the 9etup
Page No.
Date
finally Sat PATH and J4N4-HoME RNviron met
vamableg to mater to the diraterry thaf contaiy
Java and Javac typicaly java-înstall_din/bio and
java_ings talldir regpechively
Set PAH : C:\jdk l.8.0-102\bin [Link]
Sat J4VAHOYE C:\jd kl.8.0- l02
setup dipse IDE
To iostall Eaipge TDE,download the eaipsd biny
rom https:l/ [Link] [Link])
nce you have doan lbad od the Ingtallation 'uppaek
binary'istibaion into q Conuineant Locaion.
Folipse 09n be stagt ed by ecutiog the follaig
Qomyandy on indo
double dick
oaohino
on elipse ,ee
you simely
patb =2c: lipse/eel ipsa
sctup Andmotd
-ent too
plin
les stat
Deudlopnenttndreid devalopn
This step ill halp' yoy in
fo ecipse.
ait launching
Setting
eipge qnd then
hoose hlp Sotwae updateg > Insta| ne softe
ue add button toadd 4DT plugin name
htps: /[Link]
Ad the locatton you il| ick Ok
oca ion caipse stasts seqn
button te-add this Locafion
qvailable in thQ a locaion Qhd
-finally ustd down the
the coat plugn
Vevelopmant. applicafion
Qndoid meady
-fer envimonm
is ent yout
it
meqySulcejsulhy
it c7ated is D your TÊ
butan 4D areated batore
intomaton folloing tha enter and device
yitua andoid cneate
a button
t neUse
manar 4VD andoid
managr D
indow
edilaunch
pse utig langeahich 4UD option yeny
4VD andsoid launch
deuice vitua andoid
toreae code Or Wting
otaat
Sodevice android Vitua
l you applicatic roid and you
a
tapt To
ouice1 vinta 4noid Create
Page No.
|Date
ApplicaHon layor
Thisd Paty
Native 4pPs Browje Devdopur
Contaot, Maps, 4Pps Apps
Appicaion framoQotk
Locaion Qontent Jiodon 4ehi vity Paskoj
Ba ed
Serviee
Psovide
Monager Managet Managr
Blueoothl No+iicaion Relour ce
Tolephooy NFei-A
Mamager
Direa
Lbsgie 84ndroi Run Tige
Grapbi MediassLe nchoid ç braraies
(opani,SGL,freclyp) sebkit
K Daluik Viatua!
1ibe SQLite Sufaoe
Manae
unuz hernel
Hardwaye Dvrg Power Prroces MemosY
0S8,Display Mangsebt Managment Manasmen
Bluetoot
Lit
The androi Softe stack put sineely
kerne a ollaton
Ezpored thaough an appl^ framewote hat
provide manaseant o the
and
Uouz kernal
T is Hhe hegt of andoid orehiteohture tha
at the soot of andsoid qrchitecure
Unua hornel I6 e ponsible dovice daivert
power manageen manasement
dovice mandgcnent alcegS
Runnina top of the Hernel qodsod
includ
Ube and SSL.
TherQ native çbrge sueh y ebhit
SSL openGl|ES Fre eType SQite
ryed ig t
The ebkit Ub broser
Suppoo QndssL (8ec ure Socket Layer) it provide,
iotetnet security
Gapbieg çb tha i nduse SGL md (Scalable
Gaphics ib) and openeL (open agphic u6])
For creaing 30
Grapbies
Madiq Ub is foo playina
Qudio qnd video ormat
Page No
Date
SQLite fos daaboe Suppor qnd Srfqee Manag e
Is prouide display
Android RunTime
The sun time i5 Qhat make gndaoid phone
alhes than Gnux implaroohtation
the core ibar e qnd Dalvik VM.
The ngine tha poet
your applic aog and along StB the ibgeg
the bais Pos th applcation framro!
Coeibraeg Athaugh the mott Qndoid oppln
davalopment the Java Cag
The cbre 4ndroid ubrame pvide
the tunchionaty qvail able nthe
uboameg. As ell' 4ndroid Spasific ubranag
Dlvik V.M. - Dalvik bajed Uintua
ryalhine that been optiogiee to insure that
a device toltiple instenceg
aficianty
throegnz
RerneFer
The dalvih NM nabley 2V ary dndroidN app
prroeals th it own ihtance
O the da<vik vitu mahine
The Adod su tHtime
me also prauideg
cOse ubrate hich enable drd aoid ppl|9 devalopp
to te androld appl ufing Stand e tava proy
Lanuog.
Applicaion dayar framewok loyr
The applicaton Arameok layr prouide ay
level Service to the dppucaron
4pplicaHon develapet allow to make uge
of thee service in their opplicaton.
4pplication layor
IH consist naHve apps thigd pasty allthe
oPp
An
lgod deuelopet aPps You i|| Level you ||
qndroid applicatHoy af the top you
ite opplication to be in'stall ed oo this
Layer only qe Boosef 9ame.
Ex - Sueh applicafion
Applicstion Compon anti.
4elturty
2 Serviee
Broadcayt reeivers
eCont ent providf.
4ppicaion compohentt Qsenta
buildin bloc of application
Thage componat Loo3 ey Coupled by
the oppliaioh manit file [Link]
That egcobe gch component f
god how thay interac tere the
ao four mai
Component Hhat an be ued thin android
pplicaHen
Pags Na
Date
L 4ctiuitiy
4n acHuity reprnt
cingle Saroen ith
he er intrface
2Sevice
Tbey hordle baakaround procejsing aysociate
th an pplicatian
3| 8road aat Re aeiuet
They band le Cogmui cation bateen 4ndoid os
pplication.
Broadeqst receêvet simply relpond to Brooadcoyt
msp from other application. -From the gyste
4 Content Provicdert
They bandle data and daobae manaqeent
issuei 4 content providet componant Usupplies
data Fror application to otber on reguest.
Sueh equehs are bandled by roethods of
tbe Contehtyoluer alays
Addittornal eorgponant
1Iotent
Ancroi intent is therpsoge tha is pased batsee
Qompon nt? (sues al activite cantand prduideri
(gorvicay broacast oi aboy, ate
E isAcherally ued Sith stortteivitye) mathod
to evokecal) activity broad cast reciavers ete
4ndroid intents qe gainly
stot Sorvie
() Lauunch an aetivity
Display o abpoe
ist
are u to repreent the potton o Uj
|ioterface in an
aoivity
3.
|Layouts
Thepe are ueed to t dane interfaae f
aetivity
4 ViewS.
Thele qre wed to buld a w interfaee for an
app ing üke buton istt teieu
ete
Refoutey
To bula an andod app eter na
arent Uke audio ley ete. other tham
codint
. Manifest e.
Tso conigurafion ile (4ndreid Manit em)
Forr the applicaon and it ill contaln the
in feoaton about aotuitie intett content
Pace No
Date
prouidef Setvicel baoadcot
P
Anatomy of 4ndroid 4pplicaion
Pckage Eaxplorar o
"Hello ulot
STe
(Basjeend)
iMainActivtyjava
D gen (qeneraed file)
Rjava (Compiler)
bin (4Pk eile)
drawablehdpi
- LoPi
-mdPi
- xhdPi
" Layout
" [Link] ( Frontend UserInterfaee)
" Value
" Abdroid Manieitzm ( Root Cle 4ndroid 4ppl)
4natomy Pachd
Sorce (Src) S o r ce
This Contains java
includ ep Mafn4ctivitj jov
profect. By defaul! it
sc fle havig
acttvity clafs thaicon
runs
when
the 4pp
is
your apP
flag)
qen (enerat ed java .R file, 4-compiler 9nerat
THS contaiy the
- ed File tha
seoerce
neterence Jfound
You sho uld not modify this fle
yout profeet.
3 bin (:apk file package file9
This Folder contajn the android
the bld procs
.apk t build by A-DT duin an qndreid
ing ese needed to
ond
everythig
pplicatian
(Relouree) dranable hdpi
This is a diretory Fer haable obj2ett that
ferr hiFh density skills.
dezignsd
s reLayout
This is directoo feo Ple thot defines
ioterfaee
tes/vau a
fo otbars
This is q
Ale th af contain dimeeury coll ection of
VamO
seorrel Sulh
shins ang color defination
Pace No
Date
74ndroid Manifopt. m
This is the manifeft file hich depembe
the fundamerta aharaetaristieg of the and
defines egch o! it componentf.
The Man 4ehuity ile.
Tbe main aofiuity is q java file
Maintei [Link] This is a a ctual appicaian
file hich ilo dalvic
utimafely gats convortod
executable your appliratiou.
The Rtle
Tis gutomatically generatod frle and you
shoud not ryodi Ey the Ueontent of [Link] Pile
Tbe Manifet fle
batever Compon ant you develop a a pat
f
QorponenHapplice
ton
In q manifept Fle
Which deido atthe roct
application pro eet directoay
Shiogs file
The Js fing. xm file is Located in e/valua0
toder qnd it-eontaiy all the eet that yo
appicaion upA fer
butiow Labley default tea and gimilos typer o
Shings 4 into tbig fles.
This JGT is meponsible fos thgir textua! Content,
The Layout file
The actiuity_main,m is a layout
directoy [Link]
qvailable in me/ Layout
applicaion when building i48 itarfoe
by yo
yos ill modify this file very frrequ
ppicafion,
enty
to chagnge the layout e! yo u
Running the applicotio
our
Hallolod appli catton
LetsyáeatR e Q9SSwe You had reated
your 4D nile doing eyvigonment Setup to
t e app froreoipe
projeets aLcfivity le alick your
rom the too bas
Fo- un E ips e ipstall tho opp
4VD ang stati and i everythi
Loth setup and
emulaos Wndo, display the
)ehiteeture o 4ndoid
Component of 4ndreid 4pp|^ omd 4dditona
Com pon en
) Hle