Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

KC Java Android Talk (March 2011)

1,433 views

Published on

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

  • Be the first to comment

  • Be the first to like this

KC Java Android Talk (March 2011)

  1. 1. Beginning Elementsof Android
  2. 2. Hacker Phone 3000
  3. 3. Prerequisite Knowledge•  Java
•  XML
•  UI
Design*
•  SQLite*
•  Graphics
Crea:on/Manipula:on*

  4. 4. Me and Java
  5. 5. Me and XML
  6. 6. Tools•  Environment
setup
 –  Eclipse
w/ADT
 –  hDp://developer.android.com/sdk/installing.html
•  adb
 –  Debugging
tool
that
comes
with
SDK
•  DroidDraw
 –  hDp://www.droiddraw.org/
•  Photoshop/GIMP
 –  More
of
a
nicety
than
a
requirement

  7. 7. Development Workflow1.  What
type
of
app?
2.  Match
with
exis:ng
sources
3.  Ini:alize
a
repository
 –  Lost
work
sucks…

 –  hDp://github.com
is
free
4.  Rough
out
the
basic
ac:vity
and
layout
5.  Refactor
code
while
con:nuing
to
polish
 –  TDD?
6.  Polish
UI
with
layout
tool
and
possibly
graphics
 –  DroidDraw
7.  Profit!
 –  Android
Market
 –  Free
op:ons

  8. 8. Live Coding
  9. 9. Example Program 1•  Hello
World!
•  Main
class
file
•  Layout
XML
•  Manifest
XML
 –  Handled
by
the
Eclipse
UI
ini:ally

  10. 10. Basic Concepts•  UI
elements
in
Java
or
XML
 –  Tradeoffs
•  Override
 –  onCreate

  11. 11. Example Program 2•  Widget
example
 –  Pull
fortune
RSS
feed
 –  Widget
requirements
 –  Styling
widgets

  12. 12. Example Program 3•  Choose
your
own
adventure
game
 –  Look
at
older
code
example
that
I
did
in
 Ganymede
with
Android
1.6
 –  Refactoring
 –  DroidDraw
in
use

  13. 13. Resources•  SDK
site
 –  hDp://developer.android.com
•  Books
 –  Hello,
Android!
[ISBN:
1934356565]
 –  Android
Cookbook
[ISBN:
0321741234]

  14. 14. Resources•  Other
code
in
OSS
community


×