Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
272 views15 pages

Dashrath Nandan MAD (Unit2) Notes - Alasso

1. Native data handling refers to basic and straightforward approaches developers use to manage and process business data within their applications. 2. Some key considerations for handling data in native apps include caching strategies, data storage, networking APIs, background tasks, user input handling, and error handling. 3. Native apps have the best performance and tend to be more interactive and intuitive for developers compared to web apps.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
272 views15 pages

Dashrath Nandan MAD (Unit2) Notes - Alasso

1. Native data handling refers to basic and straightforward approaches developers use to manage and process business data within their applications. 2. Some key considerations for handling data in native apps include caching strategies, data storage, networking APIs, background tasks, user input handling, and error handling. 3. Native apps have the best performance and tend to be more interactive and intuitive for developers compared to web apps.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

elcsmste

UNIT:2 bashrath.
Nanda.
Date
Page

tNaive Data Handling


Naiue data handlng could tefeu to the basic e
staightonwaHd apucaches cevelapous use to manage anol
bustess adata within thein asplications
* Some key Cenaidenatien fo handling data in MAD
CochngiJnmplement caching staategea to te frequenty wad data
Dado Storage "Netoorkng and ApIs "Backqround Task
Usex fnput Hanclling olocat Dalabase eEryor Hamdting
Secuniby Testing
Natve Aþbs Haue the Best esfornamce
i1) Moe secHe
it)Natiue Bbbsane Mose trtenactiue and Sntuitiue
iv)Uos Deuelefers to bcces Ful Feature Set et Deice:
Jends to haue Fuun Bugs dwing aeveleýment

Data amd Frle Shoage


Btonge
Andrsid Lses a file dystim that's dimilar todisk-basol
ile dystem Dn other plaljorms
Shaned Prutenenes Pruiate fuimutie dala in key value fais
Srtewnal Storage :- Bivnte cata en deuiee memby?
Exkernal Storage i- Pablic data on deuice or exkanal sforage
SQLite Dalabase i- Structyed data in a private catakase
Lemiont Poutdesi- Stohe beiatsly and make aailalle
Others publiely
Netuork Connecion: You Cam use Wlw to store and ctive dat
loud Backub
lsssate
Date
Page

* Internal SBorage Exlexnal Storage


Aways awaiable Not alwysavallable.
Uses device's filesystim
ercternal stoage "ke sD card
BOnly yout hþ Can aUs lest Any asp can read
0n uninstals dystem xemoes ton inlnsbl, system dos oat
As buiwati dinectoiesSet bemiien in Bncroid
"Peamanend storage ir ecory manifest.
-getFles Dir).

* Shaned PHefenonta: Jlis the uay in which ene can


stoe and Hetiue smalu amount s þimitiue aata
as Keylvalue bains to a file on the duuie Atorage such as
Shing, ind, foat hat make up you pifvena nXM fil
A SQite Database
Relatonal database is a mehod of shchving data as
toblesseiatid to ench othen by shared attibuty
Struckuned gueuy Languagc (SqL) u a language for
deanchinpQnol updaling adatabase
SONt s an
GpensAULeHelationel
to bortom AabAe
dahtae ie ued
Oboratien en amdroid deuice
* Uséng SQlite databage:
Verzatle and Bhraigtfonoard to îmblement.
Shructuread data
*Acces, seanch amd hamge doBa feequenty
*Data can be Yeþasemtea s rows Qnd
(olumnsls
classaute
Date
Page

AcapteH ARecylen View


X onbonent Gt SoLite cdatabase View Holde Wo rd I

SQLie Open Helphe


S8t Database bhject al intyachen
|SsIte SgLie Open Helph en
|uith daabase threugh Spite jen Hephe Sglite Dafabase| Data
" bxecuke youy Yeguests
+manage yowr dalakase
tSeheoakeclata kep Complex afs managable
* OHS: Jhe basic husbese of cwser udo soint to a
Aingle so he Hisult tethed by the query
CAaHons get CeuntC) numbe of xows in cwss
get Celumn Nams() i getesiten )
* Content Values i- Reþhesenta Grne table tew, soesdata as
key- value pains key-CotumnName Value-Feld name.

x dmtlomening. S9lite
"Geate data model
Subclas SQlite Open Helbhex
tan MainAckiuty Creake instance of Sglie Chen Halshet
al meHhods 'af sQika Oben Helsher to u0k uith daabese:
* Database OpoHati:
Insent) guy) method
Tnsent into<table>(list-of Colm")Qerey san take and hetn
Values (< Lit of values )) ; any olatetyhe that UI ned
Ubdak C) 'mnp lement guenyl) metad in
Update flw set tle ="Ple' open hehon clas
Uhere id =5; doleke O
cassmate
Data
Page,

Focus on ITntenactiue and boal- dien desn


ResbonAe to er
Colsn selectien

ACanas is he dimpest , siist way to duaw


Sbjectu on he sereem.
’A dawable is a cembiled usual escunee hat can

nimation s the puecen acdding a mcten


fect
o any uiuy image oe teat Animahion in bndusid i
UT Hich losk and feel

i) Bosocky Animaton: Kobeuy animaten is Dne sf


the Aebut
amet lueyhing fameuors which
dt can be uedAlleus animatin
to Qdd any
nimatin in Checkbor, kadeBuctens and uidges
i V dnimatenit Can be wsecl to
add aninatin to
sheaie Mius to bouforn tueened aninól

i) Drawable Aninatienilis ad igou ant do aninatt


alAssmate
Data
Page

*Methoda 9f Animaton : animaton


Statrimatfon(): Stavt the
cleayonimaten 0: clear he aninaton unning
on a Veet

t Audic/ uideo Recoadesoked uido , thene ça buill -


n mausld for tecoHding adio on
called Media RecoHden his claw hes to
in class
casily HecoHd udeo and audis fle
Mehods8elAudloSeunee) , SetAudioncoden() ,
C)
Bop) _Stautl0 , Helease
idees in andued, here is a clascalld
For viusing Yaw telder
MediaPayor" o indent uidees , ue put
Playes:
* Stb to build a lideo ejust need one component ie: vdeoVie
1:dn creating Fonlemd, uil ony ceme hen
Heuind, forwad
Q he iens ike bay,
we touch en Videolieu. geting media Conbrsls ty?
Coing, ue aue
Ze Brckend baut i-e. javo (new Media Conhelle Cth);
Vw set Medialontelo in Araylat and matin a
aw faden
4" Adding the uideDs of llido.
a mehod called set
call to
Wideo list o add(RYaw).fadal)
ideolit Qdd[R au) Qoueplane)
Nsw in betideo -

VU"sotlideo URL/U);
classmAte
Date
Page

* hene aHe duo uays doget the cusBent ocatien


any Andeid delice :
Android's Location Manager API
) Fused ocaton Prouider : ocsle PlaySerico location APIs

Debuagi ng.
Jebugngalls you to go thucugh each line af cade
uatiatng younass haniable methods and hewr
uellcode is usking
Stat cebuggén
Set breakþoinis nnyan a6' Code
In todlba, Aelect a deice to debug from target deie mnu
In toolban click Debug.
Click the Debugger tab:
The Android Debug Database ibrany allows you to eramine
databases and shaved brefeences in Androèt abhe:

* bumnèy af Andoid Afb


Deueleping an androld atplicatien inuelues Aeuoal
buscesesHhat haben in a seqential omamex
Caltcal 2s inuslued
) Building the APK Fle
i) Deploy the Aplicakon
D) Run the Abplcationhn
An APK Antaeid Packape kit athe ile format foe
AHpicatien sed Sn the Andro! os.
eleeate
Date
Paqe

STeb1: Duilding the APK Filea :


0) Code (ombilation. b) ConveHsion (nto Daluik bykcode
Java |Kot n Javo byte Code
Source Prie Sample
cIass Kt ( cas file )

Java Comþiler Kotn DEX Comþfley dx


Jowac
koine
Daluik byle- Code
(clases des)
Java bye-Code
Sample:Samþle Clam.ciqgs Anchoid Virtal qachine
(Datuik Andyoid tuntim

d Aþþ Dghbution
Aplinkon Raygwcecanu dex
aast tee) apk file javsgne
Sgnad
signeg palgn
aKbilder toet

Ansthold ackage
(oapk Hle)
Steb2: Deblay the ABblicotien: sohus cdah
AtþLcaktn Jeslymend i the þroces Bf installing, contiring
and enablinq a sbecifte abplication , usually hraigh an
atplicaten mangon
manaqex to a Specifia URLon aServet
aEotabluh the ADB SeweN fAndhold Devíce Deploymend Madkine
Anchoid Debug Bidge (ADB) JADB dQ0mone ADB
debloys an aypli~ation Sover ADB
to tndiod dlauie . Channd Cient
ApP APP
b) Tanstes abk Hile 2
to the Deuice
dassate
Date.
Page

Shes3: Run the Abhlicakioni


4) Atp launch Yequext Kygete hupceu, 0special kind
f Ancheld os þrocos uhich enables Code shaig o
dferent tndtances hat nun aco% DUD. Jt aunche
am abp hen a ueu make the Yepuest to do 20
bConveHATen 84' dex Code to natve OAT Hormake
lase dox dexoat toot onespondng
OAT Versen

Black Box esting hlhite Box Testing


D#sauay of detone keting euter ha the knesledge.
in ich inteunal stuchone absut the intnal Shict
br code is hldaen Or code f the, dotwne
i) AAe known as Amchona Sbuchuval testing cloasber
data- diven and Closed bex and Codebased festing
estinq
i) MozHy done by doHware kester: TDone by
ti luast ini onsumingtiu mastSotware Develojerd
time lonsluming
yNo kmowledge of inmplementKmsurtedqe of imblament
-atien is Hequired -atisr i Hegied
Vi) Had fo auormato Black-box TEnsy to automato hi
Vr)Aet duitable for alqoathn Tulell sutable amd Hecommen festing
testing dec tor algoithn kting'
Vin)dti cdone at highn leuelat is dene at louwr

inteqraton tuting
classmate
Data
Paga

Testing Debigging
bugs and esver the bu fund during testing
i)h) Testing à done by tester Done by proqrammer 07 developexs
Can be mamual &r auonaed. dt is auiays mamual
) Testing. is tnitated ater dtiu concon uith the execuhtn
code s witten test cas2'

Automatien Tala to Teslinq Andraid ahbleaHonk i


Jesting mebile abbs uaitial comhenent of the SDLC
dt is guite time and sessnce censuming anct can
be challenge when here isaneed to met deadline
1- Atbium: Jhis san oben- Sonce autmatien teolt that
Augpota ide Hange sf Andreid as
2Robetion : Open- Rource auomation tool that dubhokta natine
and hybid mobile abhs
|ros Rebust test, faster testing spedsdinmulaness test
3. Kebiten: Jhii gies he teuter the ability to check the
eal deie
Pros: Povalel lest , Easy to install, Simple UI.
4 KMAX: dis one Gf the best automatien teel ter
tasting haw mebile ap behaue nder
diltesnt metuiak:
Kos Cisto mizable , Conhsled anmd Yefeatable tests:
5 Squish fo fAndod ' Subor natire, wb and hybid motie hes
alssMAte
Date
Page
Nandan

Web Seyvice AHChileclune


Ihe hleb Senuiee Achitechne desceibe hew to
instamtiate the elements and inplement he
bhoHatiens in an inteuoheable YnanneY
Seuice keaistyontand Seice Deni7tin
Fnd
WsDL,UDDI Publrsh
WsDL UDDI

Seuice KRegnestose Bìnd seuice hoidex|oneou


Qnd Suie De
Jhoe Reles i
D Sexvee Prouiden- hà the platorm tat host the Jeruie
) Seuice ReguesBor- dtiu he asplicaten hat uloking
tor and invoking an inkeracon uuth keue
I) Suie kegiskey-Seutce Aeguustoh find deuie and tain
binding info fr douiee dsing derelpment

DPablish Publication tt senie deucriptiin:


1) Fend - Anding f derice duscvtbHern
n) Bind- musking of seice based on seruica descript
’ Autikad of ueb douie I) Seuice ) Seuiafeststy

4 hleb SHuice implementation li7ecycle sefes fo


he phaes ton deuelaping ucb doices faom
he Heguiment to devetopment.
asscmate
Date
Page

1- Reguivement Phase: he sbjectie u to (Reg- Phase)


inderstand the busines uguienoad Analysi)
nd tronslate them into ueb dunlie
4equiemend 0yneni)Development
wab Serui

2- Aralysu Phaye: he bunpese s to Melhodlyy Design)


(Test)
Hefine and tenslate ueb Jeuice
into tenceshual modele Codin
3-Jesign þhase 3 4- Cading Phase Diaqyam:
5Test þhase ; 6 Deplayment phase.

Web Seuice Sfack or Protocol Stack


Qualey
ofservPce Service Flow WSFL
angenent
4 webdenwice bAstocel stack Secrity
Seiuite DisoVery Stetic
Sevuica Publica" piveet
pically stacks Fur Aotocsls : Sere Desempion wSDL
Jbansþort Pectocet(Serv>ce): XML-Based Mesp.SoAP
Nekuork o HTT,FTP
Jhe netuoRK layer iu Hae foundaion
Of the web deie stack.
2. MeMaging Roto cel (XM) + dt u Hesbonsible for encodng
B Descaibtien Prstocel (Seuice-)i dtiu sed for dacaibing
he public intine to a shecitc ueb souices
deee
4 Disovesy PretocetSoie):dtis a centhailiscd
nto acomnen Aegtey dB that nekusk web souice
can publish hein ecatien and desenjplien.

) RESThu web Seuuic- REST stnds tor REpesentatienal Sate


nsta bretoel tcam be accesed hrough. URI (Unifpim Resonce)
(Tdentor
classnate
Date,
Page

*Acvantapes of RES TAul


odon) HTTP QHe :
RESTful web seaake paform-ndeber
GET, PUT, ROST) Prouide dit data ormale JSoN, HtL, K
DELE TE
Ihese ae Yeusable
Jhese ae lamgage neutrá.

SOAP ueb Seuice i


imble Object Acces Prolotsl. dt dfine standasdxL
tormate"Request and Response messagu
|Facebogk XM Reguat Todo APPicaten

*SOAP Protoce! RESTe Wob Sesuice


sec2 iSOAP iA a þrotocel REST US an archtechural abbroQch:
) Stareds, Sumble Objeck Aces otoca REþresentakonal State Transfer
it) Auay erchange data in hene u no stict data
XML fonote. eRchange formak.
iv)SOAP Laes web Seuice REST dloesnot haue amy
Dpinakion Lamquage (WSDL) Stondond de7iraton Larguae
v) Hardex to implenent Ensix to imblement
Vi) Uses HTTPo M transport Uses the most bopula H1TP
þrotocot þrotocet.

heb Seuuice CEmhonenda:

) leb Serice Desophon language(WsDL ):

describing he funcinaltly feo


alAssMste
Data
Paga

colection
by a uueb serice " dt descibe áeuices asa
ofmelBk endpoint , or poia
pes Element
Deftnatonkmeage Complex Ty þe
L0boo SInput
Port Type >0 Petaton Output
Serice Port
Elerments of WsDL

UniveHSal Descnibton , DizCovesy ama Totcgra Hon(UDDI):


t uan XNL based teqisy for businenessseie word uide to list
Hhemaelues en the intesmet: dtmakes the available
and the technical intetace which may be used to acces
he euices
TheUDDI busines Yegibry dysten has three drecton'es
white Page- InfoAuch as Compamy namej addrn, Phone Dmber.
19 yellow Pages -Contain detailed business data
w)GneenPags- Cucial busines busces , Op8rating platform s
Suposked prgrm,
Debugging wcb Sericeei
Debuggnq Procex
L Problemidenttficatin amd report prefparaion
Asgning teport to Sottoane engineex to veify
la Deyect Analysis uuing modelings fnding and tting fhus
L

lo Desect esstien by making hequid change:


La atidatien of Corectibn

* Debugging. Ap)aoaches i Brute Force , Backtracking,


Forward analyis lsing kst Expeniene
case eleminatn
Töols : Kadare 2 , hlinDbg, Valgrind
clssMate
Date
Page

Uger tntotace
Use nlotace (U3) dytines the uay human intoract
uth application ot ntomationystm
* Hoo to make good UI:
keep the InielhaceSimþle
Be Corsistent andi se Comm on UÊ elemente
Placememt 8t Îtemy

* Sgnipicance/ Adkantages
Make Userß inteNQcHonBie and eient
Uaes of blocks, ybaqrabhy make set Rxberiince betor
asines tor non- echmical peple

) Graphical Jaer Tnterface (GrU).


) Command tine Intotace (CLI).
Menu Diven Tnterface Isecd on Cash machines (ATN)
i) Forn Based ntertace- rable you to tnlerad with an ahple
Nakral Lamguage nttac User interad ulth the
by talking to it.
CLI
GUI
)Comnand Line Intexface. GtraþhicaJ Uger Interyace
) CLI diyit to use Easy toUße
im) CLI Lu fastuthan GU. Slower han CLI.
) OS0S neod only aa keyboayd Need both Keyboard mouje'
V dnbut ia entoud enly at nput can be entored
a command prompt anyhere n he Soreen
v) dt Censne leu Meroy (Gnslime mere memguye
vi) hee ane no graphiA Gtraphics are sed
cssMste
Date
Page

CLI GUI

Ardhoid UI layaut:
Androtd layoutiu ued to deline the sen intnface that
halds the UI contels or ulidgek that uill appean en he
cHCen sft an andeid apblicatin or actiuiby seem
View : A uiew defined as he UI thich Dashyat Text
ssed do create interactiue UI Combon enti ies

Such as ehuiew, Inage View, Radto Batton, Ed Texts DN >Image

Vew Grous:4t acta as a base clas to


Laysut and layout paHamekr that telds
uiew iew w

"Andzod Lineay layout: Horigon tal oy Vertcas Ohentationproþenty


Relatve layout chld view 1elative to each other
Consbatntlayout: Connect iew with Conshralnts
n Table layout ? Rows amd Couns to uiew element
Frame Layout: Pins Child Weo wihn ih fhrame.
Linear Laysut

Relaiv2 layot :

You might also like