Top Banner
Android Development Introduction to
29
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Foss con2011

Android DevelopmentIntroduction to

Page 2: Foss con2011

Vanji! [email protected]

Page 3: Foss con2011

Introduction to Android

Identify unique features of android platform

Compare android against other platforms

Understand android building blocks

After this section you will...

Page 4: Foss con2011

WE’RE COVERING

TOOLS NEEDED (~5 MINS)

ANDROID FRAMEWORK INTRO (~5-8 MINS)

BUILDING A REAL APP (MAJORITY OF TIME)

QUESTIONS

FYI: THIS IS A LOT OF INFO! WE’RE GOING TO MOVE VERY FAST!

Page 5: Foss con2011

What is Android ?

android is the first complete, open and free mobile platform

software stack than includes•operating system•Middleware•key applications•rich set of APIs

Page 6: Foss con2011

Is android linux ?

android is based on a linux kernel but it's not GNU/Linux

Page 7: Foss con2011

so is android java ?

● uses the java language● implements part of the Java5 SE specification● runs on a dalvik virtual machine instead of JVM android is not an implementation of any of the Java variants

Page 8: Foss con2011

Android linux kernel

Android is based on a linux 2.6 kernel, providing•Security•Memory management•Process management•Network stack•Driver model•abstraction layer

Page 9: Foss con2011

THE APP

Emulator!

Page 10: Foss con2011

What You’ll Need

Page 11: Foss con2011
Page 12: Foss con2011
Page 13: Foss con2011
Page 14: Foss con2011
Page 15: Foss con2011
Page 16: Foss con2011
Page 17: Foss con2011
Page 18: Foss con2011
Page 19: Foss con2011
Page 20: Foss con2011
Page 21: Foss con2011
Page 22: Foss con2011
Page 23: Foss con2011

ARCHITECTURE

Page 24: Foss con2011
Page 25: Foss con2011
Page 26: Foss con2011

APPLICATION BUILDING BLOCKS

• UI Component Typically Corresponding to one screen.

Activity

• Responds to notifications or status changes. Can wake up your process.

IntentReceiver

• Faceless task that runs in the background.

Service

• Enable applications to share data.ContentProvider

Page 27: Foss con2011

APPLICATION REPLACING& REUSING

Client component makes a request for a specific action.

System picks the best component for that action.

Components can be replaced at any time.

Page 28: Foss con2011

INTENTS: APPLICATION REPLACING& REUSING

Page 29: Foss con2011

WRITING THE APP