1.
Whati
scor
dov
a
1.Apachecor
dov
aismobi
l
eappl
i
cat
iondev
elopmentf
ramewor
k
2.Cor
dov
aispl
atf
ormf
orbui
ldi
nghy
bri
dmobi
l
eappl
i
cat
ionusi
ng
HTML,
CSSANDJAVASCRI
PT
3.Camer
a,cur
rencyconv
ert
er,
etc.
2.Whatar
ethef
eat
ureofcor
dov
a
1.COMMANDLI
NEI
NTERFACE
Thisisthetool
sthatcanbeusedf orstart
ingtheproj
ectbui
l
ding
processfordif
fer
entplatf
orm,inst
all
ationplugi
nsandlot
sofotherusef
ul
thi
ngt hatmakethedev el
opmenteasier
2.CORDOVACORECOMPONENT
Cordovaof
fersetofcorecomponentthatev
erymobil
eappl
i
cat
ionneed,
thosecomponentswil
lbeusedforcreati
ngbaseoft
heappsowecan
spendmor eti
met oi
mpl ementourl
ogic
3.CORDOVAPLUGI
NS
Cordovaoff
erAPIt
hatwi
llbeusedf
ori
mpl
ement
ingnat
ivemobi
l
e
funct
iont
oourJAVASCRI
PTAPP.
4.LI
SENCE
Cordovaisl
i
censedundert
heappl
i
cat
ionl
i
censever
sion2.
0apacheand
theapachefeat
urel
ogosar
etr
ademar
kofapachesof
twarefoundat
ion
3.Whati
scor
dov
apl
ugi
n
Aplugi
nisapackageof
injectedcode t
hatal
l
owst heCordova
webv i
ewwi thi
nwhi chtheappr enderstocommunicatewit
hthenati
ve
plat
form onwhi chitr
uns.Pluginsprovi
deaccesstodeviceandplat
for
m
funct
ionali
tythatisordi
naril
yunav ai
l
abletoweb-basedapps.
4.Whati
sNode.
jsandNPM ?
Node.
jsi
sanopensour ceserverenvi
ronment
Node.
jsi
sf r
ee
Node.
jsrunsonvari
ousplat
forms( Windows,Li
nux,Uni
x,MacOSX,et
c.)
Node.
jsusesJavaScr
iptontheserver
Mainpoi
nt-nodeJSistheplat
form neededforcor
dovadevel
opment
NPM
TheWor l
d'sLargestSoft
wareRegistr
y(Li
brar
y)Theregi
strycontai
nsover800,
000
codepackages.Open- sourcedevel
opersusenpm toshar
esof t
ware...
.
Us i
ngnpm i sFree...
.
Co mmandLi neCli
ent
Instal
li
ngnpm.. ..
So f
twarePackageManager ..
Ma i
npoi nt–NPM(NODEPACKAGEMANAGER)i sapackagemanagerforjavascr
ipt
programmi nglanguage
4.whati
sgi
t
Gitisadi stri
butedv ersion-
controlsy
stem fortr
acki
ngchangesinsour
cecode
duringsof t
war edev elopment .
VersionCont rol System (VCS)i sasof t
warethathelpssof
twar
edev el
operst
owork
togetherandmai nt
aina
compl etehistoryoft heirwor k.
FunctionsofaVCS:
Al
lowsdev eloperst owor ksimultaneousl
y.
Doesnotal lowov erwri
ti
ngeachot her’
schanges.
Maintainsahi storyofev eryv er
sion.
5.Whati
sgr
adl
e
Gr adleisanopensourcebuil
dautomat i
ontoolthati
sbasedontheconceptof
ApacheMav enandApache
Ant.Itiscapableofbuil
dingalmostanytypeofsoftware.
ApacheMav enandApacheANTar eprojectmanagementt ool
s.Maveni
sabuild
automat iontoolused
pri
mar il
yf orJavaproj
ect
sbutalsobeusedt obuildandmanagepr oj
ect
swrit
tenin
otherlanguages.The
mainusageofAnti sthebuil
dofJav aappli
cati
ons.
6.Whati
ssubl
i
net
ext
Subl
i
meTexti
sacr
oss-
plat
for
m sour
cecodeedi
tor
.
7.Whatar
ethest
ept
oaddenv
ironmentv
ari
abl
e
ENVIRONMENTVARI ABLES
Setthefol
lowi
ngEnv
ironmentVar
iabl
es:
(Ri
ght
-cl
i
ckonThi
sPC Adv
ancedSy
stem
Sett
ings)
ANDROID_
HOME
C:
\User
s\Ar
chana\
AppDat
a\Local
\Andr
oid\
SDK
JAVA_HOME
C:
\Progr
am Fi
l
es\
Jav
a\j
dk1.
8.0_
131
GRADLE_HOME
C:
\Gradl
e
8.Whatar
ethest
epst
oexecut
eappl
i
cat
iononmobi
l
ephone
:ENVI RONMENTVARI ABLES
Setthef ollowingEnv i
ronmentVar iables:(Right
-cl
i
ckonThisPC Adv
ancedSy
stem
Sett
ings)
ANDROI D_HOME
C:\
User s\Ar chana\ AppDat a\
Local\Andr oi
d\ SDK
JAVA_ HOME
C:\
Progr am Fi l
es\ Java\jdk1.8.0_131
GRADLE_ HOME
C:\
Gr adl e
PATHVARI ABLES
Edi
tthePat hvariabletoaddf oll
owi ngv al
ues:
C:\Gr adl e\gradle-6.
2.2\ bin
C:\Progr am Files\Jav a\jdk1.8.
0_131\ bin
C:\User s\Archana\ AppDat a\Local\Android\Sdk\
tool
s
C:\User s\Archana\ AppDat a\Local\Android\Sdk\
plat
for
m-t
ool
s
CREATI NGANAPP
Step1–Cr eati
ngApp
Opent hedirector
ywher ey ouwantt heapptobeinst
all
edi
ncommandpr
ompt(
Git
Bash).
Opent hedirector
y->Ri ghtClick->GitBashHer
e
Execut ethefol
lowingcommand
cordov acreatefir
stAppio.cordova.hel
loWorl
dFir
stApp
DirectorynameDef aultr
ever sedomai nval
ueTi
tl
eoftheapp
wher eappi sto
becr eated
Step2–Addi ngPlatfor
ms
Openy ourprojectdir
ector
yint
hecommandprompt
cdfir
stApp
Executethefollowingcommandtoaddandr
oidpl
atf
orm
cordovaplatf
or m addandroi
d
St
ep3–Edi tCode
OpenthetestApp\
www\index.
html
andt
est
App\
www\
js\
index.
jsf
il
esi
ntheEdi
tor
Makerequir
edchanges
Save
Step4-BuildingandRunni ng
Buil
dtheappf oraspecif
iedplat
for
m sothati
tcanberunitonmobil
edevi
ceor
emulat
or
cor
dov abuil
dandr oid
Executethefollowingcommandt ousedefaul
temulat
or
cor
dov aemul ateandroid
Executethefollowingcommandt ouseanexternal
emulat
ororreal
devi
ce
cor
dov arunandr oid
9.Expl
ainEv
ent
List
eneri
nter
face.
-
TheEv entl
istenerrepresentt heinter
facesr esponsi
blet
ohandl
e
events.Javaprovidesusv ari
ousEv entlist
enerclassesbutwewi l
l
discussthosewhi char emoref requentlyused.Ev erymethodof
anev entl
ist
enermet hodhasasi ngleargumentasanobj ect
whichissubclassofEv ent
Obj ectclass.Forexampl e,
mouseevent
l
istenermethodswi llacceptinstanceofMouseEv ent,wher
e
MouseEv entderiv
esf rom Event Obj
10.Whati
sJDK?
-TheJav aDevelopmentKit(
JDK)isacross-pl
atf
ormedsoftwar
e
developmentenv i
ronmentthatoff
ersacol
lecti
onoftoolsand
l
ibrariesnecessar
yf ordev
elopi
ngJava-
basedsoftware
applicati
onsandappl et
s.
11.Whati
sjav
ascr
ipt
?
-
JavaScri
pti
sadynamiccomput erprogrammi nglanguage.Iti
s
l
ightwei
ghtandmostcommonl yusedasapar tofwebpages,
whoseimplement
ati
onsall
owcl i
ent-
sidescr i
pttoint
eractwit
ht he
userandmakedynamicpages.Iti
sani nterpr
etedprogrammi ng
l
anguagewithobj
ect
-or
ient
edcapabi l
i
ties
12.Whati
suseofdi
vtag?
-
TheHTML<di
v>tagisusedfordefi
ningasecti
onofyour
document
.Wit
hthedi
vtag,youcangroupl ar
gesect
ionsof
HTMLelement
stoget
herandformatthem withCSS.
13.Whati
suseofget
Element
ByI
djav
ascr
ipt?
-
Theget ElementByI
d()methodoftheJavaScr
iptprogramming
l
anguager eturnstheelementwhichishavi
nganI Datt
ribut
ewi t
haspeci
fi
cval
ueI
tis
mai nl
yusedt omani pul
ateortogetsomeinfofrom an
elementont oy ourdocument.Thismethodwil
lret
urntheNULL
valueifnoneoft heelementsisavai
l
ablewit
hthespecificI
D
14.whati
spauseev
ent
Theev
entf
ir
eswhenanappl
i
cat
ioni
sputi
ntot
hebackgr
ound.
Thepauseev
entfi
reswhenthenat
iveplat
form put
st heappl
i
cat
ioni
ntot
hebackgr
ound,
ty
pical
l
ywhentheuserswi
tchest
oadi f
ferentappl
icati
on.
15.whati
sresumeev
ent
Thi
sisanev
entt
hatf
ir
eswhenaCor
dov
aappl
i
cat
ioni
sret
ri
evedf
rom t
he
backgr
ound.
Cordovaconsi
stsoft
wocodebases:
nati
veandJavaScri
pt.Whil
ethenat
ivecodepul
l
s
theappl
icat
ionfr
om t
hebackgr
oundther
esumeeventisfi
red.
16.whati
sbackbut
tonev
ent
Theev
entf
ir
eswhent
heuserpr
essest
hebackbut
ton.
Toov er
ri
dethedef aultback-
butt
onbehavi
or,
registeraneventli
stenerf
orthe
backbutt
onev ent,t
ypical
lybycal
li
ngdocument.addEvent
Listeneronceyourecei
vet
he
[
devicer
eady]
( event
s.devicer
eady.
html
)event
.Itisnolongernecessarytocal
lanyot
her
methodt ooverr
idetheback-butt
onbehavi
or.
17.
whati
smenubot
tonev
ent
Theev
entf
ir
eswhent
heuserpr
essest
hemenubut
ton.
Appl
yi
nganev
enthandl
erov
err
idest
hedef
aul
tmenubut
tonbehav
ior
.
18.Whati
ssear
chbut
tonev
ent
Thisi
sanev
entt
hatf
ir
eswhent
heuserpr
essest
hesear
chbut
ton
onAndr
oid.
I
fyouneedt
oov er
ri
dethedefaul
tsearchbutt
onbehavi
ouronAndr
oid
y
oucanregi
steraneventl
i
stenerf
orthe'sear
chbut
ton'
event
.
19.whati
sst
art
cal
l
but
tonev
ent
Thi
sisanev
entt
hatf
ir
eswhent
heuserpr
essest
hest
artcal
lbut
ton.
Ify
ouneedtoov err
idethedefaul
tst
artcal
lbehav
ioury
oucanr
egi
ster
aneventl
i
stenerforthe'st
art
call
but
ton'ev
ent.
20.whati
sendcal
l
but
tonev
ent
t
hisi
sanev
entt
hatf
ir
eswhent
heuserpr
essest
heendcal
lbut
ton.
Ifyouneedtoover
ri
dethedefaul
tendcal
lbehav
ioury
oucanr
egi
steran
eventl
ist
enerf
orthe'
endcal
lbutt
on'ev
ent
.
21.
whati
svol
umedownbut
tonev
ent
Thisisanev
entt
hatf
ir
eswhent
heuserpr
essest
hev
olumedown
but
ton.
I
fyouneedtooverr
idethedefaul
tvol
umedownbehaviouryoucan
r
egist
eraneventl
i
stenerfort
he'vol
umedownbut
ton'
ev ent
.
22.whati
svol
umeupbut
tonev
ent
Thisi
sanev
entt
hatf
ir
eswhent
heuserpr
essest
hev
olumeup
but
ton.
Ify
ouneedtoov err
idethedefaul
tvol
umeupbehav
ioury
oucanr
egi
ster
aneventl
i
stenerforthe'v
olumeupbutt
on'
event
.
23.