0% found this document useful (0 votes)
11 views

Android Assignment 2

1. A drawable resource is a file that contains graphical elements like images, colors, shapes etc. that can be loaded and used by Android applications. 2. Common types of drawable resources include bitmaps, shapes, colors, and XML files that define layers and states. 3. Drawable resources allow graphical elements to be reused throughout an app and help separate graphical elements from code for easier maintenance.

Uploaded by

Devanshu Rathod
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Android Assignment 2

1. A drawable resource is a file that contains graphical elements like images, colors, shapes etc. that can be loaded and used by Android applications. 2. Common types of drawable resources include bitmaps, shapes, colors, and XML files that define layers and states. 3. Drawable resources allow graphical elements to be reused throughout an app and help separate graphical elements from code for easier maintenance.

Uploaded by

Devanshu Rathod
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Qulck Wark

Poge Noz
Date:

ssignmerrt-2 MT W TFSs

7HoLo to cxeate ondaoid op. twhte


oouon tepaS
To create he irst
poge
Andoid applicaion
qe to he haxE
Steps ox Creaiag 1SAndoid Application
Create the neLo Andnoid paofect
2. 9xte the meesege Cophonal)
3. Run the Ondoid applícation
22Waite down StepA r Deploying ondoid
Opp Inphygical mohile devices.

Steps
1. Connet Andnid phone Luith the fCOn yOU_
Uhning pojeLt.
2Jhatall the USBdaver for your deviee
3. Connect deuide to conputer Ušin OS6 CAble
Rn the Conñguralionu inide Înstallation
5. Select the Andnid pnjiect to vn &open
theTargek ta
6. Cuck an Arelg buton Run r
app into anclniel
hon auhmeitaly înstal
phone Lmake iEUun aver fto
Qulck Work
Pago No:
Date:

MT W TFSS

3Waite down folder nanneA ananmy an


andid application
SrC
Andanid lrbrary

aMets
e
Andanid Mantet xni L
uaste daiun 5 Andanicl App.Conponena.

-Actiuiies
Totenk &Broadtast Receivers
SeaviceA
-Conternt Provides
Widgets NoihcatibhA

Dra adiaghao Achivihy feaycla£


exploin ib
te cycle methods
1.onLneatec> urh S, onStop C)
2.OnStaat) 60nRetantC)
3,onReaume(S onhestroyJ
Honlause()
Qulck Work
Foge Nos
Detes

MTWTFSS
hovigates
sC onlreote()
| On3tartC) lonRestatal
Achvity on For eRround

OnReAume(k fUsek
retua tp
atuy
ProLess Achvity
Runnin
Ac ivityeaves
Tereound
on PauleL)
Achvity hot visible
onstop) User AAvigateAH
a 2 2to ackvi

1 onCreate i: app
lhe achvity ky
boan
sutem
swhan yov Start tte
whun_achvity statu o
ti taled
geun mRmoy

2onstaxtC):2 ondreateC mithed


ealud by iyaten afkr
tis becomes visikle to use
s tha orctiiui
Date
MTW TFSs

3onKeumeC:
phase, usax Can idte ro.ce
uith the
dnthi for e0nd,
activityE is in the
onaueC):
nothar acbuity come in mt,itpaue
butitk sill alive
5.onStop
achity isn't victhle to vsey în duis
he
phase kuk ta alive in backgound
6.onRektaatC):
Jnthis phae, i the vaex halizatu hatk to
atuitytretaxt iom beimg s epped.

TonAeataoy):
E callkd udhea the u2er cleAe th app
ox nishes the aciuiy destaped.
67 What is intent Explain its tupes oith exampl
An tntent i ke a mesage that apps s_TO
ruaskion achon fhorm nuther conponen
Such aaStaring enatity or sehice
Qulck Work
Poge Ho4
Dote:
MT W TFSS

Ts a uay fux diHerent pats ot an app or


ditereot appA To comnunfcarte wok
tagether
pe el tenti
Exphci Tntenti
JLed to Start 3peuhc comp0nenE uTthan yAOY
app ike an activity name
gauSpeciy target componet by its ceR
@X: TE yOu hae 2octiiiel, A 4K ay yeluant
o mave îona A to B, YØV avld vte
ekpliie întent

>teot isneL0tentLA.thiu, K.clas


glartActivity Ci)
2.Tmp tdE Tntent
sed to nequeaEÁunchiona ltty 6om dther
withoutspeciying a
Components Onidevice
payicular clad
SqAtemolecioles cwhich conpoKenE can best
handle fntentbaed on speciied ecton
data au categ@y yOv Can se an
OK:J uwanty.nen
to a uebpege
Qulck Work
Poga No.
Dale:

MT W TFSs

implfcit nteat to_Cask yatern ind a


Sulkable brouuser Co handle reqitajt
VIE
teat i=has Jntent CIntent ACTION
Ui.paxseC'htpg|wuw. example. LOnaV_
staatAcfiuityCi
Explain 5Andold Applicanion Comp0hentu.
7
1Actiuity
An aciviy represent a(U singie screen
wth a user intertace uuer
t f ety polnt hr interaching with
acan_contain vanoug UL elementA.
Thay are eudfal tor havisation &user
iteracKionuuthin an app
2. Seauice
isa background eomponet hak
pertgmg lanj -unning operaton
Ox na in the kackaound o
heyere oeA UAed hor toa ueh as
playing music, clounloadinsles
dy hahdling netuork tranadcio
Qulck Nork
Poge Ho.
Detes
MT W
TFS S
3 tent ti oadcaxt ReceiveYs
nteots are meMage dhat esllouoditerent
paxti an oPP Or derent appslo
eLLat octou om @ther conponent, Aueh
as taating LtUie OY 32DViceg.
Broaolcabt Keceiuer is a Systen-ufde
ponent that
fstens to LireAponds to buadeast
annauncements JtalouR olterentg opps to
xeeie reae to eenti r_meMagea,tulitaig|
CommUnicaKon between eAmpanents

.Contant Pxnvidecs
aanege a shated Aet oapp elata tha
Can be acteued by otherr apps,
dpoviole C stondard intertace to
iotero.t ultth appolta, enabling dala
shaing be tween olitereat corupohe nts.

5. Wtolgebo y Noiiaton:
Think awidget aa min-app an
LoUr nome ereentgho0uWs yOO intórmation
ck a glance uithaut opening all- appb.
FDrxo weather uiclgek might disp lay
eurren tanperaturg_uuItAayt gpsiug dpp
Qulck
Work
Pogo No
Doter

MT WTFSS
Notificationgore lfke meuogesa phene
sendd o yavr dttortion
get
y pop up on yayr 3Cren, Dlek ydu kro
ahovt Samethinglikesa meMage maiL
ex an app update
e eon fap on ansi caion o open the

elated epp oy taka acion


87 EXplain Drawakle Roaaure

You might also like