KC Java Android Talk (March 2011)

Preview:

DESCRIPTION

This is a condensed version of my talk slides from the KC Java Users Group.

Citation preview

Beginning�Elements�

of Android

Hacker Phone 3000

Prerequisite Knowledge

•  Java•  XML

•  UIDesign*•  SQLite*•  GraphicsCrea:on/Manipula:on*

Me and Java

Me and XML

Tools •  Environmentsetup– Eclipsew/ADT– hDp://developer.android.com/sdk/installing.html

•  adb– DebuggingtoolthatcomeswithSDK

•  DroidDraw– hDp://www.droiddraw.org/

•  Photoshop/GIMP– Moreofanicetythanarequirement

Development Workflow 1.  Whattypeofapp?2.  Matchwithexis:ngsources3.  Ini:alizearepository

–  Lostworksucks…–  hDp://github.comisfree

4.  Roughoutthebasicac:vityandlayout5.  Refactorcodewhilecon:nuingtopolish

–  TDD?6.  PolishUIwithlayouttoolandpossiblygraphics

–  DroidDraw7.  Profit!

–  AndroidMarket–  Freeop:ons

Live Coding

Example Program 1

•  HelloWorld!•  Mainclassfile

•  LayoutXML

•  ManifestXML– HandledbytheEclipseUIini:ally

Basic Concepts

•  UIelementsinJavaorXML– Tradeoffs

•  Override– onCreate

Example Program 2

•  Widgetexample– PullfortuneRSSfeed– Widgetrequirements– Stylingwidgets

Example Program 3

•  Chooseyourownadventuregame– LookatoldercodeexamplethatIdidinGanymedewithAndroid1.6

– Refactoring– DroidDrawinuse

Resources

•  SDKsite– hDp://developer.android.com

•  Books– Hello,Android![ISBN:1934356565]– AndroidCookbook[ISBN:0321741234]

Resources

•  OthercodeinOSScommunity

Recommended