際際滷

際際滷Share a Scribd company logo
Induction Into the
Android Army
Tom Opgenorth |
tom@opgenorth.net
A Word From Our Sponsors
1. Getting Started
2. Android Architecture
3. Parts of an Android Application
4. Look at Code!
Things Well Talk About
What Involved
Getting Started
1. Download the Android SDK & Java
2. Get an IDE
3. Emulators & Devices
4. Google Developer Account
Writing Android Apps
 Only an approximation
 Emulators dont replace devices
 Googles emulator sucks
A Word About Emulators
 Genymotion is a better emulator
So What Kind of Device?
 So Many To Choose From
 Try to get one you can root
 Prefer Nexus devices from Google
 Make sure you enable Developer
Mode
What does Android Look like under the Hood?
The Android Operating System
Induction into the Android Army
 Distinct components with specific
roles
 Adaptable to many different forms
and purposes
Android App Architecture
 Activity.Equals(Screen)
 Displays all UI Elements for an app
 XML for layout files
 UI can be decomposed into
Fragments
Activities
Activities & Fragments
 A component that performs long
running operations in the
background
 No User Interface
 Can be bound to other applications
Services
Intents
Pick	
 Photo
Call	
 
Mom
Edit	
 
Contact
View	
 
Web	
 
Page
Get	
 GPS	
 
Loca>on
Play	
 
Song
Send	
 
Email
Start	
 
App
Send	
 
TweetView	
 
Map
View	
 
Video
Browse	
 Market
Capture	
 
Video
Capture	
 
Photo
Edit	
 Calendar
 Listens for messages
 Tells Android what to to in response
to message
Broadcast Receiver
Content Provider
 One structured way to share data
between applications.
 Not just databases: files, photos,
contacts, and more
 Uses an Android URI to reference
content
 A - Identifies this is for content
 B - Authority (who owns this data)
 C - A query to help identify where to find the content
 D - an ID that identifies a particular piece of content
Content Provider
The Manifest File
AndroidManifest.xml
Broadcast Receivers Content Providers
Intents Activities
App meta-data
 Non-code files and static content
that your app uses.
 Different resources for different
devices
 Android decides what to use
 Default vs Alternate Resources
Resources
Induction into the Android Army
Induction into the Android Army
Building an APK - Simplified
Show Me The Code!
 Android - http://developer.android.com
 Genymotion - http://www.genymotion.com
Links / References
Thank You!
Questions?

More Related Content

Induction into the Android Army

  • 1. Induction Into the Android Army Tom Opgenorth | tom@opgenorth.net
  • 2. A Word From Our Sponsors
  • 3. 1. Getting Started 2. Android Architecture 3. Parts of an Android Application 4. Look at Code! Things Well Talk About
  • 5. 1. Download the Android SDK & Java 2. Get an IDE 3. Emulators & Devices 4. Google Developer Account Writing Android Apps
  • 6. Only an approximation Emulators dont replace devices Googles emulator sucks A Word About Emulators Genymotion is a better emulator
  • 7. So What Kind of Device? So Many To Choose From Try to get one you can root Prefer Nexus devices from Google Make sure you enable Developer Mode
  • 8. What does Android Look like under the Hood? The Android Operating System
  • 10. Distinct components with specific roles Adaptable to many different forms and purposes Android App Architecture
  • 11. Activity.Equals(Screen) Displays all UI Elements for an app XML for layout files UI can be decomposed into Fragments Activities
  • 13. A component that performs long running operations in the background No User Interface Can be bound to other applications Services
  • 14. Intents Pick Photo Call Mom Edit Contact View Web Page Get GPS Loca>on Play Song Send Email Start App Send TweetView Map View Video Browse Market Capture Video Capture Photo Edit Calendar
  • 15. Listens for messages Tells Android what to to in response to message Broadcast Receiver
  • 16. Content Provider One structured way to share data between applications. Not just databases: files, photos, contacts, and more Uses an Android URI to reference content
  • 17. A - Identifies this is for content B - Authority (who owns this data) C - A query to help identify where to find the content D - an ID that identifies a particular piece of content Content Provider
  • 18. The Manifest File AndroidManifest.xml Broadcast Receivers Content Providers Intents Activities App meta-data
  • 19. Non-code files and static content that your app uses. Different resources for different devices Android decides what to use Default vs Alternate Resources Resources
  • 22. Building an APK - Simplified
  • 23. Show Me The Code!
  • 24. Android - http://developer.android.com Genymotion - http://www.genymotion.com Links / References