Mobile Application Development-Lecture 01 & 02.pdf

423 views 23 slides Feb 22, 2024
Slide 1
Slide 1 of 23
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23

About This Presentation

Bscs Course


Slide Content

Mobile Application Development
(ITEC-303)
Fahim Abid
[email protected]
[email protected]

Credits Hours 3(3,0)
Recommended Books
1.ProfessionalAndroidapplicationdevelopment,RetoMeier,WroxProgrammerto
Programmer,2015.
2.AndroidProgramming:TheBigNerdRanchGuides,Phillips,B.&Hardy,B.,2nd
Edition,2014.
3.iOSProgramming:TheBigNerdRanchGuide,Conway,J.,Hillegass,A.,&Keur,C.,
5thEdition,2014.

Mobile Application Development Platform (MADP)
Amobileapplicationdevelopmentplatform(MADP)isatypeof
softwarethatallowsaindividualorcompaniestorapidlybuild,test
anddeploymobileappsforsmartphones.
MADPprovidersincludeAppleXcode,AndroidStudio,Kinveyetc.
Kinveyofferscross-platformdevelopmentforbothiOSandAndroid,
whileAppleXcodeandAndroidStudioonlybuildappsintheir
respectiveenvironments.

Operating Systems for Smartphones (Mobile)
•Android
•iOS
•Symbian
•Windows Mobile
•Blackberry OS

Android
AndroidisanoperatingsystembasedontheLinuxkernel,anddesignedprimarilyfor
touchscreenmobiledevicessuchassmartphonesandtabletcomputers.
Androidisanopensourcesoftwarestackformobiledevicesthatincludesanoperating
system,middlewareandapplications.
InitiallydevelopedbyAndroid,Inc.,whichGooglebackedfinanciallyandlaterboughtin
2005.
TheprojectresponsiblefordevelopingtheAndroidsystemiscalledtheAndroidOpen
SourceProject(AOSP)andisprimarilyleadbyGooglewithOpenHandheldAlliance
(OHA).
Androidwasunveiledin2007.ThefirstpubliclyavailablesmartphonerunningAndroid,
theHTCDream,wasreleasedonOctober22,2008.

Androidisthemostpopularoperatingsystemintheworld,withover2.5billionactive
usersspanningover190countries.
Inendof2021,thenumberofmobileappsavailabletoAndroidusersviatheGooglePlay
Storeexperiencedaconstantincrease,reaching4.67millionappsduringthelastquarter
of2021.
Open Handset Alliance (OHA)
Android is developed by a partnership of developers known as the Open Handset Alliance
and commercially sponsored by Google. It was disclosed in November 2007, with the first
commercial Android device, the HTC Dream, launched in September 2008.

Features/Characteristics of Android
The important features/characteristics of android are given below:
1) It is open-source.
2) Anyone can customize the Android Platform.
3) There are a lot of mobile applications that can be chosen by the consumer.
4) It provides many interesting features like weather details, opening screen, live RSS
(Really Simple Syndication) feeds etc.
5) It provides support for messaging services(SMS and MMS), web browser, storage
(SQLite), connectivity (GSM, CDMA, Blue Tooth, Wi-Fi etc.), media, handset layout etc.

Android Versions
ThedevelopmentoftheAndroidoperatingsystemwasstartedin2003by
Android,Inc.Lateron,itwaspurchasedbyGooglein2005.Thebetaversion
ofAndroidOSwasreleasedonNovember5,2007,whilethesoftware
developmentkit(SDK)wasreleasedonNovember12,2007.
Asoftwaredevelopmentkitisacollectionofsoftwaredevelopmenttoolsin
oneinstallablepackage.Theyfacilitatethecreationofapplicationsbyhaving
acompiler,debuggerandsometimesasoftwareframework.Theyare
normallyspecifictoahardwareplatformandoperatingsystemcombination.

Android 12 12 31 October 4, 2021
Android 12L 12.1 32 March 7, 2022
Android 13 13 33 Q3 2022

Development Challenges
Various Types of Devices
Different Android Versions
Device Capabilities

Android Platform Components

Android Platform Components
Applications‐TheAndroidOpenSourceProjectcontainsseveraldefault
application,like
–EmailClient
–SMSProgram
–Calendar
–Maps
–Browser
–Contacts
–etc.
•AllapplicationsarewrittenusingtheJavalanguage.

Android Platform Components
ApplicationFramework–ConsistofAPIwhichallowshighlevelinteractions
withtheAndroidsystemfromAndroidapplications.
–Managingthelifecycleofapplications
–Providingaccesstonon‐coderesources(localizedstring,graphics,and
layoutfiles)
–Enablingapplicationstoaccessdatafromotherapplicationsorto
sharetheirowndata
–Providinguserinterfacecomponents
–etc.

Android Platform Components
Libraries‐IncludesasetofC/C++librariesusedbycomponentsofthe
Androidsystem.ExposedtodevelopersthroughtheAndroidapplication
framework
–Recordingandplaybackofaudioandvideoformats
–Accesstothedisplaysystemandsupports2Dand3D
–WebKitlibraryisresponsibleforbrowsersupport
–FreeTypelibraryisresponsibleforfontsupport
–SQLitearelationaldatabasethatisavailableonthedevice
–etc.

Android Platform Components
Runtime‐CoreJavaLibraries‐Providingmostofthefunctionalityavailable
inthecorelibrariesoftheJavalanguage.
–DataStructures
–Utilities
–FileAccess
–NetworkAccess
–Graphics
–etc.

Android Platform Components
AndroidRuntime(ART)‐ProvidingenvironmentonwhicheveryAndroid
applicationruns.
–ReplacesDalvik(Usedfrom2.2to4.4)
–DalvikusedJIT(Just‐in‐Time)Compilation
–ART(5.0onwards)usesAOT(Ahead‐of‐Time)Compilation
(Creates“ExecutableandLinkableFormat”ELF)

Android Platform Components
LinuxKernel‐Communicationlayerfortheunderlyinghardware.
–Devicedrivers
–Memorymanagement
–Processmanagement
–Networking
–etc.

Android Application Components
AppcomponentsaretheessentialbuildingblocksofanAndroidapplication.
Eachcomponentisadifferentpointthroughwhichthesystemcanenter
yourapp.
Androidapplicationsarebrokendownintofourmaincomponents:
–Activities
–Services
–ContentProviders
–BroadcastReceivers
Theseareactivatedbyanasynchronousmessagecalledanintent.

Android Application Components
Activities-Anactivityrepresentsasinglescreenwithauserinterface.

Android Application Components
Services-Aserviceisacomponentthatrunsinthebackgroundto
performlong‐runningoperations.
•Aservicedoesnotprovideauserinterface.
•Forexample,playmusicinthebackgroundwhiletheuserisin
adifferentapp,oritmightfetchdataoverthenetwork.

Android Application Components
ContentProviders-Acontentprovidermanagesasharedsetofappdata.
•Youcanstorethedatainthefilesystem,anSQLitedatabase,ontheweb,
oranyotherpersistentstoragelocationyourappcanaccess.
•Throughthecontentprovider,otherappscanqueryorevenmodifythe
data(ifthecontentproviderallowsit).
Forexample,theAndroidsystemprovidesacontentproviderthatmanages
theuser'scontactinformation.

Android Application Components
BroadcastReceivers-Abroadcastreceiverisacomponentthatrespondsto
systemwidebroadcastannouncements.
•Broadcastreceiversdon'tdisplayauserinterface,butinsomecasesa
statusbarnotificationiscreatedtoalerttheuserwhenabroadcastevent
occurs.
•Forexample,abroadcastannouncingthatthescreenhasturnedoff,the
batteryislow,orapicturewascaptured.
•AlthoughAppscanalsoinitiatebroadcasts,manybroadcastsalsooriginate
fromthesystem