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

Android ApplicationDevelopment

This document provides an overview and introduction to developing Android applications. It discusses why Android is a good platform, its application framework including activities and the manifest, and getting started by installing the necessary tools. It also covers building the user interface with widgets and views, distributing apps via the Android Market, leveraging external libraries for features like analytics and monetization, and concludes with a demo of a simple "Hello World" app.

Uploaded by

Abnkkbsnpl Koh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Android ApplicationDevelopment

This document provides an overview and introduction to developing Android applications. It discusses why Android is a good platform, its application framework including activities and the manifest, and getting started by installing the necessary tools. It also covers building the user interface with widgets and views, distributing apps via the Android Market, leveraging external libraries for features like analytics and monetization, and concludes with a demo of a simple "Hello World" app.

Uploaded by

Abnkkbsnpl Koh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

JordanJozwiak November13,2011

Agenda
WhyAndroid? Applicationframework Gettingstarted UIandwidgets Applicationdistribution Externallibraries Demo

WhyAndroid?

WhyAndroid?
Opensource
Thatmeansthatitsfree!

EasytouseframeworkbasedonJava Truecustomization
Replacestockapps PersonalizeHomeScreenswithwidgets

Betternotications Easiertopublishnoreviewprocess

WhyAndroid?Security
ReputationaslesssecurethaniOS
True,butitisstillverysecure!

Eachapplicationlivesinitsownsecurity

sandbox

SystemassignseachappauniqueLinux

userID

Eachprocesshasitsownvirtual

machine,soanappscoderunsin isolationfromotherapplications Permissionsareapprovedbytheuser duringappinstallation. Appsaresignedbyadevelopersprivate key

Applicationframework

Applicationframework
srcsourceleswherethe

actualcodingtakesplace

rescollectionofresources

forscreenlayouts,images, sounds,text,animationsand more. essentialinformationabout theapplicationtothe Androidsystem

Manifestrepresents

Applicationframework
srccodeexample

Applicationframework
res
res/drawablelogoandallimages Customizablefordierentpixeldensities res/rawsoundsandmusic res/layouttheXMLlayoutforeachactivity

Customizablefordierentscreensizesand orientations
res/valuessavesallstringsandobjectstyles

NotasstreamlinedorstandardizedasiOS

Applicationframework
Layoutexample

Applicationframework
Manifest
Permissions e.g.accessinternet,accessSMSmessages MinimumAPI Hardwareandsoftwarefeaturesrequired Youmustalsodeclareeveryactivityyoucreate!

Applicationframework
Manifestexample

ApplicationframeworkActivityLifecycle

ApplicationFramework
Activity
Visiblescreens

Service
Backgroundservices

Contentprovider
Shareddata

Broadcastreceivers
Receiveandreacttobroadcastevents

Intent
Launchnewactivities

Gettingstarted

Gettingstartedinstallation
GetthelatestJavaDevelopmentKit(JDK) GetthelatestversionofEclipseClassic(recommended) InstalltheAndroidSoftwareDevelopmentKit(SDK) InstalltheAndroidDevelopmentTools(ADT)pluginfor

Eclipse

Makesyourlifeeasier:letsyouquicklysetupnewAndroid

projects,createanapplicationUI,debugyourapps,andexport APKsfordistribution!

GettingstartedEclipse+ADT

GettingstartedEmulator
Eclipse+ADT+Emulator=

Gettingstarteddebugging
DDMSdebuggernotfun,butyoushoulddoit.

UIandwidgets

UIandwidgets
Androiduserinterfaceiscomposedof

hierarchiesofobjectscalledViews

View:adrawableobjectsuchasabutton,image,

ortextlabel Widget:likeformtypesinHTML,waysthatthe usercaninteractwiththeUIsuchasTextView, ListView,ScrollView,Spinner,TabWidget,Button Layout:acontainerforwidgets

UIandwidgets
LinearLayout,RelativeLayout,andTable

Layout

Applicationdistribution

Applicationdistribution
PublishintheAndroidMarket
Purchaseadeveloperaccountfor$25 ExportAPKfromEclipsewithADT UploadAPK,images,anddescription

ExternalLibraries

ExternalLibraries
Easilyaddexternallibrariesbyimporting3rd

partyJARs(.jarles)

Allowsyoutoeasilyintegratecoolfeaturesinto

yourapp MakeuseofSDKsfrombigcorporations Sellingpoint Lesscoding

ExternalLibrariesAnalytics
GoogleAnalytics(recommended)

Understandhowusersinteractwithyourapp
Numberofvisitorsperday Timeonpage(inactivity) Demographicsandlocation Trackappversion Appinteraction(buttonpresses,conversions,etc.)

ExternalLibrariesMonetization

ExternalLibrariesMonetization
Opensourcephilosophy
Peoplearelesswillingtopayforapps,so

developersmaymoneythroughadvertisements

AdMob(recommended)
BoughtbyGooglein2009for$750million Paidbyclick,notbyimpression Easilytransferfundstoadvertiseyourownapp

(20%bonus)

ExternalLibrariesOthers
ManylargecompanieshavetheirownSDKs

intheformofJARs

Facebook,Twitter,Dropbox,OpenFeint,etc. SearchonlineforJARsforotherfunctions

(advancedmathoperations,etc.)

Demo
TutorialforHello,world!
http://developer.android.com/resources/

tutorials/helloworld.html

TutorialsforViews
http://developer.android.com/resources/tutorials/

views/index.html

Othertutorials
http://developer.android.com/resources/

browser.html?tag=tutorial

Thanksforcoming!

You might also like