first android experience

32
Building Your First Android Experience Web 2.0 • Tony Hillerson 1

Upload: tony-hillerson

Post on 19-May-2015

6.701 views

Category:

Technology


0 download

DESCRIPTION

Slides from a presentation given at Web 2.0

TRANSCRIPT

Page 1: First Android Experience

Building Your First Android ExperienceWeb 2.0 • Tony Hillerson

1

Page 2: First Android Experience

Tony HillersonSoftware Architect - EffectiveUIRails, Flex, Java‣ Mobile

✦ iPhone and Androidhttp://thillerson.blogspot.comhttp://twitter.com/thillersonhttp://brightkite.com/people/thillerson

http://github.com/thillerson/first_android_experience/

http://slideshare.com/thillerson/first-android-experience

2

Page 3: First Android Experience

AgendaIntroduction

Tour

Our First Project

Cooking with Android

3

Page 4: First Android Experience

What’s an Android?Operating System for Mobile DevicesHTC G1

SDKCompiler, tools and IDE

MarketFree or paid

A Platform for your Applications

4

an•droid |ˈanˌdroid|nouna robot with a human appearance.- Encyclopedia Galactica

androidYour plastic pal that’s fun to be with!- Sirius Cybernetics Corporation

Page 5: First Android Experience

Open Handset Alliancehttp://www.openhandsetalliance.com/

Over 40 membersDevice Manufacturers, Networks, Chipmakers, Software Companies, etc

5

Page 6: First Android Experience

Open Source FrameworkOpen it! - http://source.android.com/

SDK - http://developer.android.com

IDERuns in Eclipse

6

Page 7: First Android Experience

Platform7

Page 8: First Android Experience

Linux

8

Page 9: First Android Experience

Linux

Native Libraries• Surface Manager• 2D+3D Graphics (OpenGL) + Media• SQLite• Browser (webkit)

9

Page 10: First Android Experience

Linux

Native Libraries

Runtime + Dalvik VM • Lightweight Java VM• Efficient Bytecode

10

Page 11: First Android Experience

Linux

Native Libraries

Runtime + Dalvik VM

Android Framework• Activity Manager• Content Provider• Location Manager• Notification Manager

11

Page 12: First Android Experience

Linux

Native Libraries

Runtime + Dalvik VM

Android Framework

System Apps• Contacts• Phone Dialer• E-mail• Web Browser

12

Page 13: First Android Experience

Linux

Native Libraries

Runtime

Android Framework

System Apps + Ur Appz

13

Page 14: First Android Experience

Vocabulary14

Page 15: First Android Experience

Activity: A single screen. Your app is made up of one or more Activities

15

Page 16: First Android Experience

Service: A task that can be running while not visible.

Put that in your pipe and smoke it, iPhone.

16

Page 17: First Android Experience

Intent: Code to accomplish a verb, like “call number” or “open comic”. Facilitates app to app communication.

17

Page 18: First Android Experience

Content Provider: Data and an API that any app can access.

Android provides contact information through a Content Provider.

18

Page 19: First Android Experience

Resource: Text, pictures, sound, etc. Everything is broken out of the code into a resource, which is compiled into a class called R

19

Page 20: First Android Experience

Drawable: A bitmap or xml definition of something that can be drawn.

20

Page 21: First Android Experience

Getting Androidhttp://developer.android.com

21

Page 22: First Android Experience

Where to find Helphttp://developer.android.com/community/index.htmlGoogle’s Forums

http://android-developers.blogspot.com/Dev’s Blog

http://developer.android.com/reference/packages.htmlDocs

http://code.google.com/p/apps-for-android/Sample Apps by Googlers

22

Page 23: First Android Experience

A Tour23

Page 24: First Android Experience

Our First App24

Page 25: First Android Experience

Cooking with Android25

Page 26: First Android Experience

PicturesCamera

Image Library

26

Page 27: First Android Experience

PersistenceSettings

SQLite

27

Page 28: First Android Experience

Location Location LocationLocationProvider

Geocoding

28

Page 29: First Android Experience

Hiding Your Threads in UserTasksGoogle’s UserTask

29

Page 30: First Android Experience

Prettying Things UpStyling common widgets

Themes

Digging into existing styles

30

Page 31: First Android Experience

Reading the SourceSDK

Android source and Apps

31

Page 32: First Android Experience

Thanks!Tony Hillersonhttp://slideshare.com/thillersonhttp://github.com/thillersonhttp://thillerson.blogspot.comhttp://effectiveui.com

Twitter: thillersonBrightkite: thillerson

32

You

YourFather

Bob