Upload
tom-opgenorth
View
9
Download
2
Tags:
Embed Size (px)
Citation preview
A Word From Our Sponsors
1. Getting Started 2. Android Architecture 3. Parts of an Android Application 4. Look at Code!
Things We’ll 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 don’t replace devices ❖ Google’s 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
❖ 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
Building an APK - Simplified
Show Me The Code!
❖ Android - http://developer.android.com ❖ Genymotion - http://www.genymotion.com
Links / References
Thank You!Questions?