Building Your First Android Experience 1 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
android an•droid |ˈanˌdroid| noun Your plastic pal that’s a robot with a human fun to be with! appearance. - Sirius Cybernetics Corporation - 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
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
Platform 7
Linux 8
• Surface Manager Native Libraries • 2D+3D Graphics (OpenGL) + Media • SQLite • Browser (webkit) Linux 9
Runtime + Dalvik VM • Lightweight Java VM • Efficient Bytecode Native Libraries Linux 10
• Activity Manager Android Framework • Content Provider • Location Manager • Notification Manager Runtime + Dalvik VM Native Libraries Linux 11
• Contacts System Apps • 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
Vocabulary 14
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
A Tour 23
Our First App 24
Cooking with Android 25
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
Your Bob 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
Recommend
More recommend