You are on page 1of 18

Mobile Application Development (226 17)

X. Exercise
(Use blank space provide for answers or attached more pages if needed)
I. ~rite a program to create a HelloWorld Activity using all lifecycles methods to
display messages using Log.d.

(Space for answers)


··············································· ··········································································································
.:z:................ . . .. . . . ........... . . . ..... ........ . ............................................................ ... . . ....... . ... ..
~ ....~ ......................................................................................................................................... .
C..: ) - c. .l.-
··· ··············~ .. 0 .()...2 ..
r ....................................................................................................
\.~.r.L)

•~~rt1~~lo~1!~;.~1•••~~~•••~~•~•~j~'.~= ~ .~~ .~~~


.... &..t_B.',J;t.7-····'~······6,e.G.n:oy.e.d.... anc\.....~.f?Jo7Jecl .....~ r . )............ ~

...... ~ ....~ois:y............................................................................................................ . '--


-,. •) A1() 0,.. ,\
...........('
f '
u1.1 . ..v . .\.LA.u~e.~ ..................................................................................................
~
...... o.o.o.th.e.~... .
....5-.Ll:i:J;..\;.'1····;.s.....po.~.k .a.il..y.....cb-Ge..~ .e..d...h
1
.D.~.~.it:y.,-....9-no.~.e~...... Ct.c.lri.v~.~ ....tbt.Jb . . lr.\ ..~.e........................
~
o d ~
,.s..... ~em.1,...::-: ....~- c_,
···~~~.u.f.\. . .......1 \...Q.Q~cr.e.nt.•..................................

......D~.c.n~e..s..CJ.me.c...)............ ............................................... ................................... . '---


....$~. .~~,~.t.y ... 1~.S. .....c._a.~f·e:lr..eJ-y-..f.J.clJ.e..c\ ...~ ..00.tJ................ C..;.
..... no..-t;.....\J.t.51-.b.~ .....t.cr.... fhe..'.......u.e,.e..~ ................... .............................
C::..
G..
f:-
~

c:.
f._
········································································································································ ·················
(_

·········· ···············································································································································
······· ······ ····· ·· ······ ···· ·· ············ ······· ······· ··· ····· ······ ······ ···· -······· ···················· ···· ·· ·····- ·········· ········· ·· ······· ···

··········· ·························· ···················································· ······························ ···· ······························

Maharashtra State Board of Techn ical Education 91


Mobile Application Development (22617)

IX. Practical related Questions


Note: Below given are few sample questions for reference. Teachers must design
more such questions to ensure the achievement of identified CO.
I. List different methods used in Intent.
2. Write an intent to display the phone dialer with the given number filled in.

(Space for answers)


.t~>.. . ...... . .. . ... . ......... . . .. .. ... . ... .... . .... ... . . . . ........ . .. ... .... .. . .... . ..... .......... .
.. .....G.J....a.d.~.c.0~~£t·~1ry...w. ........ . . .......... .. ...................... . .................. ...... . .....
......l.1.t).....a.dct,.Q...t.~':J/,...CJ................................................................................................ .
......(.\1v. .... C...\o.o.g ... c...J.......................................................................................................... .
.......C.,~ .Y .) ...c:.\o. n.eJ::-i..l+.e.'2r.. C.J. .........................................................................................
........C.~} ..d~.c.1r.i.b~Ccn.t~ot.s.(). .......................................................................

::~::::::~:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
....::G\t:-.e.n.c. ... l.... ::......f\er.w...X.n±.e..0:t................................................................. .
···········································c ·~ ·Tn.t.eot. ......0.-.c...T.ta.N ..-.V\.. ~ -·w· ··1······· ·····
.............................U.rl ..-Of.p .0e.'.l(.$C ..... C\.tci ..:...S\.'}.:l..4..4.~.~-o.& ..Q..~~-J.J;,..........

Maharashtra State Board of Technical Education 96


Mobile Applic3 1· D
ion evclopmen t (226 17)

VIII. Resources required (Additional)


Sr. Remarks
Instrument Specification Quantity
No. /Object
Android enabled smartphone l Data cable is
2GBRA M
I Android version supporting mandato ry for
I emulator s
emulator
I

IX. Practical Related Questions


N,
ote: Below given are few sample question • fi ,r. ence. Teachers must design
s or reJer
more such question s to ensure the achievement of identifie d CO. p .d \
I. Write in detail which methods are needed to implement Content r.ov1 her c ass.
2· Explain different parts of an URI in android applicati on. Also
wnte t e
format of URI
3 . Write steps to ·create a content provider in android applicati ons.

(Space for answers)


,➔. ........... ........ .............. ...................... ............ . . ... ................... ......... ......................................... .
.C..,J...1;_0e~7.C..J .................................................................... ....................................... ......... .
..~c._er·~····· ·°'~·u ~x-£ > .... On.ct ...~c..n e.~ ..th~...~ .c., ..~ ~···~ .
deb.,~ec.\...tW.l..0. ...~ ...L~ ....(S',e.r.i.~ .d ...os.. CL..C..ll?tio~~ ...do.:f~·u . ......
~- .. '
7~:~:~ :::.:~:~:~~:·.·~ ·~·.·.·~·.~·.·.·~ .·..·.·.·~ .·.~~·.~.·.·.·~·.·.·.·.·fu.·~·.·.·.·.··.·.·.·.·.·.·:.·.·
.~~e nt: ...p ~.\JJ~d.~~·-··········································································:·······················
(J\..\..).ordcJ.. e .C.)..........:'.............. .............. ...................._. ............. ............. .......................... .
.~-tWl.......±\:-e.....~ .~ .@cb ...~.o.a.... ~~~t.~..15:o..c.J.•........................ .......
...c.\✓J ..ct.e.}..e.x.e..c..J........................... .............. ...................................................................... .
....De).~ .e....~ ....... ~t~.t .,.~···· ·~-~.S-........... ....................................................
.c.~t).et:ltr-e..u. ... . . . . . ... . . ... . . ....... . . . . .. . . . . ... . . ... ... . . .... . . . ........ ..................... . .
............~ .~os...~....t4o1.hf..u.1rr-6e..~n\-e.\f.o.~~ ~.\....6xt.enfa~.~.I\
C.s:;1.\ .nF) ...ry.r~. . ().~···~ ··°'····r.?...the.... 8.~·~~.(\. .
~(.\te.~ .. ~Rl ............ .
C.\J..,.). ~.r.l..ire.c..J.:-:e..~.)....................................... ......................................................................
..Jk.i~......f.0.~. ~····..L~~.e dl~.:el.1.t.~ ...'tf.)\t::.\.JJ'..~e....p.)r..~.u.1·.d.~...... .
............. ..................................................................................................................... .... .............
......
t..
~~/. ...P.P.,.~ 6....9 .. U.~ .l...............................................................................................
L\) ..C.P..O:t.e..C\t.;..// ...~.......................................... ·························· ·························· ············
.t\o.{)cb.i-.~~., .....<?.c .~...o.~...oB.\ ....os..; ..c ...1r.ep~e.Ge.n ts...~.~
@·~ \J eo.....ffi\. ...,..s .... o.......Ccn~ i:-c...uJt\ .;........................................................... .
Maharashtra State Board of Technica l Education
Mobile Application Development (226 17)

<;~;) ..~ .IB.t\.O.R.\l..).'...............................................................................................................


5~f.\., .~.Qs....k ...C\a.f.'r.'e....0~ .....Con>r.ef\'t::.f?-"?S'b.:v.t.d~...~.R.e.... C.0.f.\t.a.~/
~.c.».~ .e,r..1.:ek.C. .•T,h~.f°'ir..b ..~f)t. ..b.e...u.n~.1.e.....~:c .. 8>Jeir.r··
C.<::>.~n.'\:;:.F°~·,d.e..Jr................................................................................................ .........
C:\t., )..Q~o.N.&L.?,f1T..H.t. ..........................................................................................
sye.Jt er. .. ry.re,· ..~. ..chl.o.. .FC,.,J.\.d~A...., ....lov)le.O l:f:lro vid c,7
X. Exercise
(Use blank space for answers or uttflcl, more pages if needed)
1. Write a program to create your own content provider to insert and
access data in android application.

K (Space for answers)


.n, .. . ... .. .... . . . .. . .. .. .... . ... . . .. . . ... . .... . . . . . . .. ... . . ... . . . . . . . . . .. .. .. . . . .. . . ... .. ........ . . .... . . . . .. .... . . .. . ..... .. . . . . . .. ...... .. ... .

~Ct~.) ..~kb~Q.}..\i:l........................................................................................................
...L~.....o.. ...f).cJrr:,.e:is::k:••..~.o.l.u.~....~ ..is...~..o)he.n ....tb.e?r;e.,is
.r.e.e..cl.. t..~.....o..cc..ess .... q ....00,~Hc.Y.la.~ ....:,r.-.ec..o:¥cl,..................................

Tu:i ;;:~:i : :::;~.::·.:::0.~:::::::::·.::·.::::::::::::::::::::~:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


C$c..n:!M.e ;_::r 6c..he.De o~.c.i@i C.fO.:i<:tL::/£~.!':>eo'=:]
··············· ·························· ·· ······················································· ········ .. ··········· ··· -·····················--······ ··
G ..7-... . . ..... .. ... .......... .. . . . .. .. . . .... . .. ... . . . . ... ..... . ..... ... .... . .... . . ... . . .....
C~)..US~ .....o...c...k,.s.g ......\n. ...tb.e ....fu.C}.e ....oli.~.eck.o:~:-7 .....cJhab-
.~~...-fuc.t.t...t4~.(\.~ .t.H.~.i.! )'.....~ .l..e...~ .;d.e.b.....CI.D.ci. ..t.Ns ..c..l.aQf. .
.r.).0.6.c ..C?,Xtel\cl ...1.h.e,......Lo.<:\r.~n.t :~\l1.c.l.e:ll.....6~e...cJ05:S,........
L1t.)l.~....o..cce6t;,. ......-th.e.....Conte():ll' ..~..nG. ....Q .. (o.ntc.'-'.t, ......... .

t:;~~~~~~~ ~ :e~;~1h~•~ii~~~ ·
~ .CA ·-· ··········· ····· ······· ········ ··· ···· ···· ··· ······· ···· ······ ·······.. ···· ·· ····· .. ... .............. 0............................... .
.C.:~:~J)...\~f,~F~eri.t...:ib.e ... §V'S ohc,:\:irar ½: t:"elli~~-~ --..~ .f'.\-r..Q.t\.\... .. .
~-J',Je.is cl~.......................................................................................................... .
.. C,:,r J ~8;~ tt,e. foot.en\: ~o vde.id IL
·.:~ ·c~;g~~·d.1;"\ai.\1.k.o .t:..~.~...?..i..le....lM~;J. ···~ ' 4 ~>.~;j····· 1

··············· ···· .............................................······ .. ·· ·······.... ............................................ .


,

················
··············· ··············· ······················································································
···· ······ ······ ····· ················
.... ..............
· •· ·· ·· · · ··• '"" "·······• •"' """
.... ....... ············· ·· ·· ·· ·· · ·· ·· ·•·· ·· ···• " ' ' '''' ' ' '' '' '' ············· •"'

102
·I St· tC Board of Technical Education
Maharas 11ra a
Mobile Application Development (22617)

VIII. Resources required (Additional)


Quantity Remarks
Instrument Specification
Sr. No.
/Object I Data cable is
2 GB RAM
Android enabled mandatory
smartphone / Android for emulators
I version supporting
emulator

IX. Practical related Questions


Teachers must design
Note: Below given are few sample questions for reference.
CO.
more such questio11s to ensure the achievement of identified
I. Draw the lifecycle of service.
e.
2. Differentiate between bounded service and unbounded servic
3. Describe startService() and bindService()methods.

(Space for answers)


,,;. ---- ---- .,_·•··································· ·····-· _,.,..,......,... __ __ __ _
S@..~.,.~ ...ts ....................................
.................. ......

.....S .C?.~.\i:..e ..~ .................. ..........................


...faro.tr.T.e ~.·~·3/······ ····· .................................C..Jrec.J.::e.c¼
....bJ-· ············· ....................
- V"l •+-nlf. .xll. ceJ ).. ............................... ... b.,.~ .v.i.re-.(.. ..... ......................
- ~ ~ - - - _ . . . , .............. ........... .... .
,-..= :.=i llt.. .---- ······· ·· ·· ··· ······ ····· ·· ········ ········r
"'""" '~~u .-i..~ ~JJ.. ..... ..... ...... ..
.... .. ..... . .. .. .. ...... . ....-.~.ur;! : !.!: :........~ •: i-:.-...... . .... . . ... . ...... ......... . .

--:..+'J,..:!1.1...1,,~ ••·••••• •••••••• ••••••••• •••••••••··••••••• oc1 101\t


0....,.,r••• ••••••••••••••••••••••
.,.,.., ..

'.,ot.a.a~:::·. :: ::: : : : :
······· ············ ·· ·· ······ ·········· ········· ··· ··f"'T ""-~ ----..

. ......~1N;ee..~................................................ ..... .Clt~o.\:...


··· ······· ···· ·· · ······- - - - - -
...... '?S"l;-:l.f\C'.\\.f)... ... ··························· ·················· ·· ········· ········P
.·;·~

. ...-:$e:n//t;..'! ............ _,_D~n~-.......:..:..:::::~


··· ····~ ··b. ~.i~ ······································

CnlS>..Sh?.P
..... a!Xf.P.e.~ ' ......................................... .......... ...'.\!/J ' ...... ............................. .
u '.........
... . o. ..C c.¥-~... .............................................
r%········0W.......... ..........}.............................................[cnlli6m;- .tJ7 .: :::::::··········
-
· · ··
· · · · ·······
()
................................................................. ···································· ·············
df.) ~~

...... ... ...... . ··o/··


......... ......... ...... ··· ··························· ·············· .. ····· ..... ,
··············--· · ~. . . ...........................
...
. . . .s.~\ ce. . .........
. ·········--······--·····---- - ·........... ......... . .. ..,.\.t...b. ......... ···············--····
............................................ .. G.nJi:.ckwo
. .. . . ..\$ . . .... ··· ·· ··········· ········
~~-I UJ~ Qu.! !f'IL -
.......
······························ ···· ········ ·················· ················· ······ .... ..................

··············· ······························ ··· ········ ·······•····················································

Maharashtra State Board ofTcch111cal Education 106


Mobile Application Development (22617 )

'2)~ M,

.i::.:s.~:~~·.~.~;~·,.>·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·:.·.-.·::::::::::::::::::::.
•••. !'c •. •.~.i.c.e... ..t.s. .... G..to.1s:-xe.d. ....~.h~.o. ... o.. n_ ...a.e_p\.i.<:...W:i..~.n ......... .

~.t:l.ne.n ..1a.... .S.u.c..J\...... a.'o....~n ....a .CJ:i11.:..+:-.-,.r.E;to.~$ ...'.,.\:.:...b._,, ..


·~········5·1;-0.r..>c.S.~.,c.e...c.)._ ............................................................ .
X. Exercise
(Use blank space for answers or attach more pages if needed)
I. Write a program to start a Wi-Fi using service.
2. Write a program to display the fol\owing output. -

Cl MamAcliv,ty

Stop Service

AMIWdi

r X ., . . . . . . . ..... . . . .... . . .... . .. . ... . . . . . . . . . . . . . ... . . .... . . . . . . .... . . ......... .. . ..


(Space for answers)

3 ..7--......... ........................................ . . ........ ................. . . :. . .... . . .......................... . . .... .... . .......... .


....::...9.o. .C.@ ... ....S. .tart. e.d.....n. .....G. &"IP.l J.t.e......t.~.~... 1r.u.f\ ........1. ..~ ..... .. .
·.bo.c...\:\g1r.:o.~!\cl. .....::.f:*-.. l~.. o.e.~.~.~:\-:cl.y ....~~f\ .. 1.t ....th~...................... .
Cn.:P-\f~{)e.a.k..~ ....6.\:ct'lS:t.e..d.. ...... .t'.-£ ....... de.o.t:-.~~.te.. ~..................... .
························ ······ ········ ········· ···· ··········· ······· ········································· ···········································
..........'b.;. ().c\ . .5~.t.c..e..CJ ............................................................................................. .
•s ' 'a.\_ __ \ ,.\L
..... .... e,.\).~.1.C...~...... \v.... o C .u.\TI .... .. Lu. r.i.f. .f\ .. ... C.if f:-·\~C" · ··· \~ ~.f.'l..······· ~.'C\.. kl..n.

Co mfo n~r, t h;w s m ;:1o. . h 1 La.l.li.0 .b,'.ncl-S e1r:-vic,:s,C~


· · ········ ····· · ··· ······· · · · · · · · · · · · · · ·· ··· ·· · ···· · ··· · · ·· · · ···- · ··· · · · ······· ·· · · · · ·· >
Maharashtra State Board of Technical Education \07
Mobile Application Developmen t (22617)

->
·······~··········=r~································ ······:· .. ······················................. ............................................
...............~ .... :.D.a.u.~.. ... . . . .....\D. . ... . .....Wl,,Cl,J...,1-,U,.& ........ ..
.t.o.~ .o .. .. :s........o .....;.n.te.r.a.c..c: ......Ll~.. th ..1£:..t½e.... ...5.e1r...1J.t:t.e...!,
..0 ......... :................. ..................................................................................................................... .
....~....~.....bo.ffid ..... G.Q~.',.cg ......o.~k-.-..s .....ei. .....c..\.;.en~ ....s .e.r.Jer..
.\.~ e e . ..~ .....olk~.... ta~D .e.n.t.~......+.o. . .JOta.n.u
wi~ ...f.n.~......~J~.e.'/....~a.. ..~~..u.e.sr.~..(j.e t.~u.1.u
aoc\. ....eu.e.l\.. .d..o...60......0..C..¥.css........ pro.ce.~..........6.J.1.~..................
W-\.t..el57y~c.g.~ ·····Co.. ~m ..cJD;.c.c.h..~C\.....CTP..~.J............................
········································································•············ ····································································
.. '\ . .
. ....lln'ro.iJ.n.c\. ...G..~?r\l..tJ:.~.S. ............ ...~ .uf\d_... ...s .g]r~.H.. ~~ .............. .
... .C.i).Ll~.e .cl.±:o .. f e?r~ ~ ............ :.u. 0.$..~.cl..±o.~b ..~. bQcJt·.. .
... Ja0.~ '.lrereki.H~e.- :m""1L §lrl;'ut,d,· '1:961?. i~ hol!.f.ld .
... ············................................. ····························. w, . fu...M~~e.r.........f'JfOO.el.'I'.\.•... .
••Di 2~;;;~ 1; ;;;fit Gi;5;~;;~ by ~ ~
.......S.~1d::S~.t'.ce...c.1......................... h,..n.c\~.v.£ce.. .CJ................. ........ .

... ·································· ··········· ··························· ················· ·························································· .
... ~\i.iJ.8:tt'.Of.Q...d ....n.~ .. de.s.t~::. Cti.~·J ..u.n.b.i.nd..o.~..d~s.t.~.ed.
-~-- ' b b -I
...··rrf··~·~···~ f·l.i.CJ.:tl-y-.... 1-... . ........ ···; ··r-..~auJ I :
...Q,_J....... ~................................. ·

.. ......Calli . ~................................................~.n. bi.ncl.G.~~0..1 .ce.C..J................. ,


.... ················ .......-Sm ~}.c.e.CJ .................................. ............................................... .
t>

l> .....Li:✓. JT.f.).clepe.ndeo..h ...o.~ .........0 .\)J.De~deJ\~fu> ... c(\ .............. .



.... f:tb.:e ... .c.ornf.!\~.t....1.f.\................. .........C.o..C)F'.Oe.f.\.\:...i...c\...W.hi~..
.....Llh, .. th ...\.b. ....i..s........................... ............. ..'.it!. s...... ~t:ctrl..ed................. .
J
..........S.:\::o::~::t.e.d., .............................................·.................................................... ............ .
t
t
t
t
•t Maharashtra State Board of Technical Education 108

'
I
Mobile Application Development (22617)

Bfoadcnt l!Unt
0 .:-:
...c;;
..<::
..C.
...(
.S

VIII. Resources required (Additional)


Sr. Instrument Specification Quantity Remarks
No. /Obiect
Android enabled 2GB RAM I Data cable is
smartphone / Android version mandatory for
I emulators
supporting emulator

IX. Practical related Questions


Note: Below given are few sample questions for reference. Teachers must
desig11 more such questions to ensure the achievement of identified CO.
I. Differentiated between Activity Intent and Broadcasting Intent.
2. Draw Broadcast Receivers Lifecycle.
3. List the System Events related to Broadcast Receivers.

(Space for answers)

....... ···············································"····························· ..... ~~<i.C.O.S~.·........


.!:>.! ········:··································•·································· .. ¥.eel ~e._""(

............................. ..... G1e.t.-?. ..~H~c.o.H~.¾..~~e.f \\~~-~ ~ .................................... .


OC.(:c.)\f~

Maharashtra S1a1e Board of Technical Education 11 l


Mobile Application Development (22617)

3..~>.................................................... . ........... .... ...................... ............................... ..................


...~y..TQ+.€·A~·····~·cJ.;··o.Q. ......~ .ca.t.,.......Lo~.r..L.E:T..E-.O ..............
..C.,,.)...:J?n~~.\;;... B:c.b~~.. fo .w.e.:?r.'-...Cc.N .N.E:-.C.T.£:..0........... f:\. .. _ ..

..l\.~iJ. ..r.n..t:en.L...8-.c.M.o.c:\ ....... ~o.c.J..~ ....=.. .D.\.SCo .Nl.\l.G.c...TE;..D..


...c.~~~. .T.<.\rent......&.c.H.o .~........~ i s y . ...- ...J.~.u .....................................
..l':-!.)..J:f.\.~e .n.t .......B:.C).-ic:>.n.~ .~+..e .~.7..- ..0 ..~~-:,................. ............. .
································· ····················································································· ················· ··················
·················································· ···································································· ···································
················· ····································································································· ···································
································· ····················································································· ···································
••••• • • •" •• ••• ••• •• • •• • • • • •• • •• • • • • • • •••• •• •• • • • • • ••••• • ••• • • •• • •• • •• •••
• • • •• ••• • • •• ••• • • • • • • ••• •••• •• • • •• ••• • ••• • • • • ••• •oo • • • • • • • •• • •• • ••• • •••• •• • • •• • •

················· ················· ··············································································································


·························································································································································
·································································· ·······················································································
································· ··································· .................................. ...................................................
...............·································· ················· ················· ················· ·······:·············································
X. Exercise
Note: Faculty must ensure that every group of students use different input value.
(Use blank space for answers or attach more pages if needed)
I. Write a program to demonstrate all the system broadcast messages.

(Space for answers)


······ ································ ························· ·········"············"·· ···•· " ···············••"················ ···············•"···

················ ················· ····················································································· ···································


································ ················· ········································································································
·················· ················· ······························· ·····························"·····"··········.. ················· ·········

················ ················· ···························•·"··· ···················"················· ················ ···•· oo ••·····................. .

································ ·································· ················· ········································"·····················"··· ··


············································································································································"········· ··
················ ··· ················· ·································· ································•" ················••" ····························

··· ··················· ················· ······················ ··············· ·············· ····· ················· ···········•·····························

····•·"········ ················· ···············--················· ················" ························" ··········-- ··········•"····• ·"·····--··


···················•· "·••" ··· ·••" ··· .. ··············••" ······· ··············••" " ........ ........ ................. ..................................

················ ··· ·············· ····························· ········· ··•" ················· ······· ···············•·"········· ·······--················
... ...... ...... .. .
·············• ·······•·················· ··•······ ···•····················· ··········
·· ··············· ········ ·····•····················

MaharashLra Slate Board or Technical Education


······ ···· ··········· ····· ······················································ ···························• ········································ ··· ·
········ ················ ········· ···················· ···················· ·····---···················································· ····················
··· ··· ······· ······· ···· ········· ····· ···· ·· ········ ·········· ····· ··· ······ ···· ···· ··· ··············· ··········· ····· ··············· ··· ········· ········

··· ····· ······· ··················· ··················· ···················· ······· ···················· ··· ········································ ··········
······································ ···················· ···················· ···········································································

X. Exercise
Note: Faculty must ensure that every group of students use different input value.
(Use blank space for answers or attach more pages if needed)
1. Write a program to changes the background color when device is shuffled.
2. Write a program to display the list of sensors supported by the mobile device.

(Space for answers)


·········· ····· ········ ······ ················· ····· ······ ··················· ··· ·········· ······································· ··················· ······

·················· ····· ··································································································································


············ ············· ······························ ·· ···· ······· ·····················································································

······· ·············· ········································································· ··························································· \;

Maharashtra State Board of Technical Education \ \1


Mobile Applico1ion Development (2261 7)

the activity when your activity is child of any otheractivity.


3. startActivityFromChild(Activity child, Intent intent, int requestCodc, Bundle
options) It work same as above, but it can take extra values in the shape of bundle
with it.
4. startActivityFromFragmcnt(Fragmcnt fragment, Intent intent, int requestCode)ft
launches activity from the fragment you are currentlyinside.
S. startActivityFromFragment(Fragment fragment, Intent intent, intrequestCodc,
Bundle options) It not only launches the activity from the fragment, but can take
extra values withit.

VIII. Resources required (Additional)

Sr. No. Instrument Specification Quantity Remarks


/Object
Android enabled 2GB RAM I Data cable is
l smartphone / Android mandatory for
version supporting emulator emulators

IX. Practical related Questions


Note: Below given are few sample questions for reference. Teachers must design
more such questions to ensure the achievement of identified CO.
l . List all the methods related to camera class.
2. Explain the method that is used to detect the face .

\-""> (Space for answers)

·.l,.i,l
i)·....·.(\~i\~~·~·.ii;.:~&.
\l.
i.~:: :ce.~~:~:
~ :~:
::s.:8:u~:
:: ::
:: :: ::
: :
~T.\.ON..- .. .1 ..0.c.C .. = ..~9.(?.TD..~.&.: ........................................................ .
.(\j:,J ...&.)(}.~~·--····bk~.~.€:..N ..- .... O..A-l£:.NT0:T.K:'.lN ................................... .
.. __(j_~J ...E'-.x.TB-0:-...F.u.LL...S .c:.~~f:.N.................................................................... .

k. ...7 ............................................................................................. ..............................................


.....f .ub\., ..e-. ....\J.oi.. .c\: ...6~a.-l::.~.~..~ . ~ ~ 9.r'!..C.J................................
························································································· ·······································
.....,.T.....£ ..m.T.~.~......~.~.e.......Je.t.e0:1·.~·-·~·~·····f j-~.: :~:;::u:::::::
..Do.li..~ .... k.Le.. .....~ ~ . '.o.(). ... JJ..st:-en.~.11....~...de,te.~ ..............
._fuc..e..=> ..... :\j[\ .... .... f~e.\).!.~.w. ......f.1r.a..~... ............... .......................... ........... ........... .... .

M aharashtra State Board o f Technical Education 122


Mobile Application Dc
-.-c_kipmait (ll I 7)
6

Once yo u en ab le the Bl
ge lB on
uc too lh. yo u an gc
t
de dD ev ice s() me tho d.
1t retumS a set of Bl ue
11 list of paired de vic
es ~y calling . \

pri\'alc too th de ";c es. lts synta


x is.
Sc t< BluctoothDe,.,ic
e>paircd[)e,i
ccs; J)all"CdDevices =
B A.gelBondedDe-..ic
es( ):

vm. Re so ur as re qu in d
(Additional)
,
Sr .
Instrument
No . Specification Quantity Re m ar ks
/O bi ed
An dr oid en ab led
.
1 sm art ph on e / An dr oid
ve rsi on su pp or tin g em
2 GB RA M \ Da ta ca bl e is
ma nd ato ry -
IX . Practical related Qu
ula tor
for em ula tor s \
-
Not~: Bdow go~" •r
r fn , SaJllpl~ quf!Slio,u
estions
-
"' a~ su dt 911l!Slio1ts to
l . Na me the me tho ds
~nsur~ tlr~ achiniemrn
wh ich are
fo r nf en nc e. Ta id ta
t ofid~1ttifi~d CO.
us ed to en ab le an d dis
s ..us t dm gn
ab le Bl ue too th ad ap ter
-
2. Ex pl ain the pu rp .
os e of AC TI ON _RE QU
ES T_ DI SC OV ER AB LE Co ns tan

}
3. Li st th e us es of se
tN am e(S tri ng na me)m
eth od .
t.
-
r

r
. . ---} ..... ·····•··· .. ················
... ················
(Space for answers)

•-····•£(\.ob.l.e..;........................ ···············.............................················....-........·-- ·············


............................................................
....~ .U .e _ _ ~ o .~
~ ~ ~.t1
..............-..................
0 .\ ~ .N -~ t~ ll.t.S"!.t
.,_ ................................................
................................... ............................
:t\l.et.B.\..~...............
............................ .................... ..........................................
.....O.,~\e..."-················· ···························· -- - .............. ............................ ...._..............................
.............. ..

········Blue:~.O.tb~~r·t: ··············································-···-···············-·-·
e.~..~.cti.SDh.l.e.{. J....................
...................................
-
t

.~--:;,·· ·'l:D·· ·t-·u.~.t>... .o o ......cl.isc..n!N f


id
.................... ...... ............ .............. .......
....... .......................................... ..............
.............. .............. . ..............
3.--htud::o,.t\..
~ ➔- .~~No.rn.e. C s n o ~ .~!:lt"l~.L
.......................................... ......................
....... .............. .............. ........................................

1,~ s r:1.~ d u-o, P..!.: blu ID>o.H>. <:10.Me-


. .. .
.
. t
Mohlle Applic111l011 Development (22617)

2. sctDuration(long duration) :This method sets the duration of an animation.


3. gctDuration() : This method gets the duration which is set by above method.
4. end(): This method ends the animation.
5. cancel() : This method cancels the animation.

VIII. Resources required (Additional)


Sr. Instrument Specification Quantity Remarks
No. /Object
Android enabled 2 GB RAM I Data cable is
I smartphone / Android mandatory for
version supporting emulator emulators

IX. Practical related Questions


Note: Below given are few sample questions for reference. Teachers must design
more such questions to ensure the achievement of identified CO.
I. Write the steps to perform Tween Animation.
2. Explain the use of from XScale and from YScale method in detail.

_\. (Space for answers)


\ ···/.··················································································································································
....4..J .. 0.p..e,t:\,... O.~ ..s:H).1e):; ......g(\....~ f \ ~ i .. d ....... ~~eL6 ............ .
...U\.). ...C~ecd.e... 6.~.y ... £ha.f-e.....D..oawo.h.le...............................................
..CJi.i:J ....Llf.e.o.}:e, ....8.u.f\ .... ~ .hc.a.p.G.....D.~awo.b.le.......................................... .
..C.\~.).... fu:...urecJr.e.. ...ct.he:,....6:i.o..a~ ....S.b.~e ...f).()..ao.o.b.l.~...............
... C.~.J....l.r.c.l.r1..c.le ....fu.o.w.c,.b.Jg,s. ....1.~ ...~e....ltY.:j·cu.1::. .........................
..c~.\) ...D.e..~.1\.e.....~ .... ~U.f.\ ... J\Ls.e.......~ .C\):.~·.co...............................
...C.~.i.,). .... B-.f.
f:.l1. ......r.h.e.. .......&n\. ncx}:i..t;:)•.(\ •. ..•• ••.•• . .. . .• .•. .• J..... . .. . . . . . ... . ....
...C,~.i.,~1) .... &.d. ....... C..l.~.c...K.......t\.ni..f.').c1..r.-f.~.('\-...h....... .~~·"···--·············

Maharashtra State Board of Technical Education 132


\l
.
Mobi le Appli cauon Devel opmen (22617)
t

M obile Applic atio


Prac tical related Ques tions
JX. .r.. renc e. Teac hers mus t design
I 11estions/or reJe :r. d CO X.
Note· Below given are/eW sarnp e q h, verne E~eT ci
nt ofidentt_,le .
mor; such questions to ensure ~he aca: ~oid Note:

'\
·AsyncTaskclass.
J. List the basic methods used 10 an (Use '
2. Differentiate between Asyn cTas dSer vices . . ?
k an kes a long tirne to do its
3. Nam e the method used , ifa proce ss ta work .
1 \. V

L) . '.Sp~~•f~~~--'.~~~·i. ".\ ~
. ······· ... .. . . ., >
'I

t'.> ~o.Tf' Q:i ocJ .l;. et= "nd CJ :: : : : : :::::::: :: : ::


.. C, 0 ....o.o. ~ ~.e... ~ -19,'-ii.1 ..c.e.. .<-.,J .. --------------··· ········· ·· . ... .
.~\'.\.i.)....o~ .£~,s..t .. Sxec.s.;.~ .c.2
......-··-·· -·················· ·· ···· ··· ··· ·················· ······ ···········
=·-:~-~~~st~~~(~~ ~ :: : ::: : : : ...,,
....
..2=.~ ············· ························ ······· ········ ···············
·······················--················--······ ····-- --············ ·
G..... fy. n~ Te t6b ..... CJ..1r.~......... d .es~f.\O.cl ....~r ..... cnc
.....C,J .... ..
..o.~#. . 6' C) ~ - C.0-r..G<J!'."'.) · t\ +.-ae I~ &, ~................
'b.2-.... ;.~~.·:.. :~i:: :u~:.~~~: : : :.:. . . :.:.: . : : :: : . . :. . . . . . . . . . . . .... . . .. ... . ...
:: ...Laoo.o..b ................. ..

:: :~:~~~~~~~ :::::
... C)i .) ..GeY.Y..i.c.~.k......a.o ..e. ......dfiStj/!':\~.
d.. :.~....~· ······· ······· ························ ..
=~~"'~~~~ ~~~~~:~
·· ········ ·· ····· ··· ·· ·· ·· ······· ····· ····-· ···· ·· ·· ·······
····· ·· ······· · ·· ····· ·· ···· ······· ······ ·· ··· ··· ···· ·······
·· ····· ······ ······· · ······· ··· ·· ·
··· ······· ··· ·················.. ···· .. ··· ······· ····· ······· ···
···· ······· ···· ······· ······· ······· ······· ····· ·· .........
...... .... ... ... ... .. .... . ... .. .. .
······ ········· ······ ·· ··· ···· ·· ······· ······· ·· ··· ····· ····· ··· ······· · ····
.. ···· ·· ···· ··· ···· ····· · ·· ······· ····-·· ····· ·······
·· · ·
.... ····· ········ ...... .... .... ....... . ... .. ... .. ...... .. .... .. .......
.. ....... . ... ..... ....... .. .. .. ....... ..... .. ...... ....... ...
....... .. . .
.... ....................... .............................. . ... ..... ........
....... ....... .................................. ... ........ ........ .
... ........ ..... ... ..... ........ . .... .... ... ....... . .... ........ .. .........
...... ......................... .............. ... .. .... ...... ...... ...
. . ... ... .... ... ... .... ..
........ ....... ....... ....... ....... ... ........... .. . ........... .......
.... ... ......... ..... ..... ....... ..... .... .. ..... ....... .. ........... .
...... .... ....... . .... ....... .......
....... ..... ... .... ... . ........ . .... ... ...... ... ..... ........ .....
.... ...... .. .. .... ..... ...... .... . ... ....... . ....... . ... ........
... .. ........ . . .. ... .....

l\ laharashtra S1a1e Boar d of Tech nical Ed


ucau-on
\37
Mohllc., Arrllculion l)cvclopmc:rll (226 17)

using get'J'cxt() and toStrlng() method and match it with the text using equals()
function.
The last thing you need to do is to provide a security mechanism, so that unwanted
attempts should be avoided. For this initialize a variable and on each false attempt,
decrement it. And when it reaches to 0, disable the login button.

VIII. Resources requlred(Addltlonal)

Sr. Instrument Specification Quantity Remarks


No. /Object
Android enabled 2GB RAM I Data cable is
I smartphone / Android mandatory for
version supporting emulator emulators

IX. Practical related Questions


Note: Below given are few sample questions for reference. Teachers must design
more such questions to ensure the achievement of identified CO.
I. Explain the use of equalsOfunction.
2. List the important functions which are related to GUI component " Button".
3. State the uses of Toast message.

~ (Space for answers)


l.:-::-1..................................................................................................................................................
....61.u.c.l~cJ...fev.nd:t{).D ..... is ...c>.ee.d ..:!.o....Co.~'.'\r.e.,...kJ.a ................ .
....,.'?!!Js ......................................................................................................................
l':.L.lS"'
.............crr:
··-········ ········ ··························································································· ·····························-·············
')_-)
····· ············· ······················ ······ ······ ······· ············ ·············································-····································
...Cy..~.et-..E:.Da.bl.e.d..U ...............................................................................................
... t.~.d ..£>.:-:e.tOnd.td.L1.fJt:e.()..e.-c.CJ .........................................................................
...C,li).. .tsSe.lec.t-e.cl.CJ ........................................................................................... .........
... L'i.~).. CtOi..~ e ...CJ ....................................................................................................... .
... Lv.)'...opfe..Q.d.,.C.) ...........................................................................................................
·························································································································································
.~ ..:-:-2 ..........................................................................................................................................
~ . ' . : > t . +~ ~~b.o.c...k mes.5~'2, l:t. ±~e-s a
-.-.\.le..Y.1.·····J;.*l.e. ....~a.r.e ......~~ .....cl.isj~~-c.i.~ ....w.~,\.~...o\1eYall
..o .Ll.h);.~··t····.ts.....tf\+.e:ica..UJ..v.e ....a.nA ....u.l~.b.~.....+.~.v.6e.~ ..:............

·· ·· ••······· ·· ·············· ······ ····· ········· ················· ·· ·· ··· ·· ··· ····· ··················· ···· ····· ····· ·· ·· ···· ······················ ··· ····

M aharas htra State Board of Tec hnical Education 142


Mobile Application Development (22617)

Clean user interface.


Validation (check if the email is an email and if the user entered all the dalll) .
• Notifications for the user that the data is incorrect.
Instructions for the user (e.g. how many characters are required for password). "·
VIII. Resources required (Additional)

Sr. Instrument Speclflcation Quantity Remarks


No. /Object
Android enabled 2GBRAM I Data cable is
smartphone / Android mandatory for
I emulators
I version supporting
emulator

IX. Practical related Questions


Note: Below given are few sample questions for reference. Teachers must design
more such questions to e11sure the achievement of ide11tified CO.
I. Explain validation ofuseT input?
2. List and explain various GUI components used to design the login
form with validation .
3. Differentiate between Text View and Edit Text View .

I-' (Space for answers)

{~f 0~ ✓-Ji,~~~ eii~{~ ; __;;: 1b~ ~;;:~:;,:::~ ±k.d


.Q... . .. .
. eo.~......b . d::me. ... hy...us.e.~..... l.J.h.;.1.e...c§.;.:..i.;.d····lnp-u\..s ...........
... 7"0-.......o.u.11-...a.p-.p..~ ......................................................................................................... .
3 · ··~······· ·· ···· ············· ···· ···· ·· ··· ···· ··· ···· ····· ····· ···· ··· ············· ············ ····· ······ ···· .. ..... ..... ............ ....... .

:::::;::::~:Ji:~r~~::::::,~::::::::~~J.:::~·.~:·.·,~.;.~·.~·.·.·i.·.~.~·.~·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.
...~ .......J..~:t:\~;.e.t.J.....,.!?.....osed......:\:-.G.... d.J.sf ru;••·~b ... o.ncl ....Ls ..........
..0o~k ...... edl.t;:...ab.!e....'b 1 .....#.\.e. .. o.~e1(;.............................................................. .
......-: ... r~.t;.v,~C. .. W...... C..af'.\. ..))-Eil, ... .. ·O<tte~.... ···Vf F.Ocl~IT,t.~.c.cJ).7
··~·····oo7. ...i.fme. ............................................................................................................. .

(f

\t ~

Maharashtra State Board of Technical Education 147


:~
'.:r:
Mobile Application C►-vdopman (22617)

To receive SMS messages, the besl practice is to use the on Receive() method of the
Broadcast Receiver class. The Android framework sends oul syslem broadcasts of
events such as receiving an SMS message, containing intents thal are meanl to be
received using a Broadcasl Receiver. Your app receives SMS messages by listening
for the SMS RECEIVED ACTION broadcast.
Methods: - -
I ArrayList<S tring> divideMessa ge(Slring texl) :-This method divides a message
text into severaJ fragments, none bigger than the maximum SMS message size.
2 slatic SmsManage r getDefauh() :- This method is used to get the default instance
of the Sms Manager
3 void sendDataMe ssage(String destination Address, String scAddress, short
destinalionP ort, byteQ data, Pendinglnte nl senllntent, Pendinglnte nt
deliverylnle nt):- This method is used to send a dala based SMS to a specific
application port.
4 void sendTextMessage( String dcstinationA ddress, String scAddress, String text,
Pendinglnte nt sentlntent, Pendinglnte nt deliverylnre nt) :-Send a text based SMS.

VIII. Resources required (Additional)

Sr. Instrument Specification Quantity I Remarks


No. /Object
I
Android enabled 2GBRAM I Data cable is
I smart.phone / Android mandatory for
I version supporting emulator
I emulators

IX. Practical related Questions


Nole: Below given are few sample questions for reference. Teachers must design
more such questions lo ensure the achievement ofidentified CO.
I. Explain the use of SmsManage rClass.
2. List changes that are need to be done in AndroidMai nfest.XML file to
send and receive messages.

(Space for answers)


.l.-) ............................................................................................................................................
....M .Q~.e.s......S.r::.1£......~ .fe-1r.a}:t~.cC\..£,.... Su.~h..a...s........................
E.e.!\CU~·······J~..l ...+.~. t;:......~1r....f-d..u.....S ~.~··f.i'.le53..d .~····.
.cJ..~ ...Ck7C\c··2J'··e.k· ....1..t .:.$..... o~.e..LJ.t.....b ..... ccili.i.~ ............................
1
.. 0.J;;:C!..H L .........r.:1~, L de.I::
~11:: :0. ...................................
................... ................................................................................................. .............. .........................
J_-'i
......... L................................................................................
...................................... .......................... .
C\J.Zu.s.e.&..~ ..fe:ir.~.i.f>!lj.9.f\...Oi\.~,..d ..~..f.ta~.e ...'.:7:-: ..qf.\~Jr.:o.t.cL~,. ....... .
.......... f.~~.~:!9.o..;..
f>.~.f\11)....~...f:r)..s..~ .~../.)...........................................................
C;.f.J ...(v.&.e.f., ..~ .. e~,.~.s. -,.
o.<\. .... .f .e."ll:-.~\.s s,.un.....~.£.l..~I.v.e...=.5 M s ''J,>

Maharashtra State Board of Technical Education 152


J/1, I I

//fi I

I I
I I lit
I
I ~ 1

11 I

You might also like