Building Your First Android Experience Presentation - cdn.oreilly.com

3 downloads 76 Views 2MB Size Report
http://brightkite.com/people/thillerson http://github.com/thillerson/ first_android_experience/ http://slideshare.com/thillerson/first-android-experience . 2 ...
1

Building Your First Android Experience Web 2.0 • Tony Hillerson

Tony Hillerson Software Architect - EffectiveUI Rails, Flex, Java

‣ Mobile ✦ iPhone and Android

http://thillerson.blogspot.com http://twitter.com/thillerson http://brightkite.com/people/thillerson

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

2

Agenda Introduction Tour Our First Project Cooking with Android

3

an•droid ¦ an droid¦ noun a robot with a human appearance. - Encyclopedia Galactica

What’s an Android? Operating System for Mobile Devices HTC G1

SDK Compiler, tools and IDE

Market Free or paid

A Platform for your Applications

4

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

Open Handset Alliance http://www.openhandsetalliance.com/ Over 40 members Device Manufacturers, Networks, Chipmakers, Software Companies, etc

5

Open Source Framework Open it! - http://source.android.com/ SDK - http://developer.android.com IDE Runs in Eclipse

6

7

Platform

Linux 8

Native Libraries

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

Linux 9

Runtime + Dalvik VM

• Lightweight Java VM • Efficient Bytecode

Native Libraries Linux 10

Android Framework

• Activity Manager • Content Provider • Location Manager • Notification Manager

Runtime + Dalvik VM Native Libraries Linux 11

System Apps

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

Android Framework Runtime + Dalvik VM Native Libraries Linux 12

System Apps + Ur Appz Android Framework Runtime Native Libraries Linux 13

14

Vocabulary

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

15

Service: A task that can be running while not visible. Put that in your pipe and smoke it, iPhone.

16

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

17

Content Provider: Data and an API that any app can access. Android provides contact information through a Content Provider.

18

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

19

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

20

Getting Android http://developer.android.com

21

Where to find Help http://developer.android.com/community/index.html Google’s Forums

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

http://developer.android.com/reference/packages.html Docs

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

22

23

A Tour

24

Our First App

25

Cooking with Android

Pictures Camera Image Library

26

Persistence Settings SQLite

27

Location Location Location LocationProvider Geocoding

28

Hiding Your Threads in UserTasks Google’s UserTask

29

Prettying Things Up Styling common widgets Themes Digging into existing styles

30

Reading the Source SDK Android source and Apps

31

Bob

Your Father

You

Thanks! Tony Hillerson http://slideshare.com/thillerson http://github.com/thillerson http://thillerson.blogspot.com http://effectiveui.com

Twitter: thillerson Brightkite: thillerson

32