Android
-
Upload
aleung -
Category
Technology
-
view
1.390 -
download
0
description
Transcript of Android
![Page 2: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/2.jpg)
![Page 3: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/3.jpg)
Overview
Cool Application
Internal
Application development
Others
![Page 4: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/4.jpg)
What’s Android
Android is a software stack for mobile devices that
includes an operating system, middleware and key
applications
![Page 5: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/5.jpg)
History
2003, Startup Android Inc.
Aug 2005, Google Buys Android
Nov 2007, Open Handset Alliance
Nov 2007, First SDK
Apr 2008, ADC
Oct 2008, First device: T-Mobile G1
Oct 2008, Open source
![Page 6: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/6.jpg)
Roadmap
1.0 1.1 1.5
Cupcake
1.6
Donut
2.0
Eclair
2.1
Flan
HTC
Dream (G1)
HTC
Magic
HTC
Hero
Motorola
Droid
HTC
Tattoo
SonyEricsson
Xepria X10
![Page 7: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/7.jpg)
Typical Hardware Spec
Touch screen (480x320, QVGA, WVGA)
Video/still camera
GPS
Accelerometer
Magnetometer
Enable the User Experience
![Page 8: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/8.jpg)
Overview
Cool Application
Internal
Application development
Others
![Page 9: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/9.jpg)
Cool Application
Location Based
Map + GPS + POI
Google MapsPlace Directory
![Page 10: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/10.jpg)
Cool Application
Augmented Reality
Wikitude World Browser Google Sky Map
![Page 11: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/11.jpg)
Cool Application
Augmented Reality
![Page 12: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/12.jpg)
Cool Application
Audio & Image Search
![Page 13: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/13.jpg)
Cool Application
Use Pictures to Search the Web
![Page 14: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/14.jpg)
Overview
Cool Application
Internal
Application development
Others
![Page 15: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/15.jpg)
DNA of Android
Built on the Linux kernel
Uses the Dalvik virtual machine
Core and 3rd party applications have equal access
![Page 16: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/16.jpg)
Process
One Linux process per application
Application runs in Dalvik VM
Application head limit: 16MB
Auto GC
Multi-thread supported
DalvikVM
Application A
DalvikVM
Application B
Linux process Linux process
![Page 17: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/17.jpg)
Process Lifecycle
Android is a multitasking system
But you can only start an application, can’t stop an application
System will automatically kill processes to conserve memory on necessary
Activity can save state on destroy and restore state on restart to keep seamless user experience
Where is
the close
button?
Last activated applications
Some of them might have been killed
![Page 18: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/18.jpg)
SPLRecovery
Image
File System
Fla
sh M
em
ory
/dev /system /data /cache …
OTA upgradeApps
Memory
SPL: secondary program loader (boot loader)
Swapext2 / ext3
(app2sd)FAT / FAT32
SD c
ard
Baseband
used
GPU
usedLinux memory
RA
M
![Page 19: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/19.jpg)
Custom ROM
JesusFreke’s ROM
Haykuro Rogers ROM (神童)
Chinese: GeesunMod
![Page 20: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/20.jpg)
Root
Linux OS root user privilege
Why to root?
Full control over your system
Ability to alter system files.
Run special apps that need more control over the system
App2sd
……
How to root?
![Page 21: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/21.jpg)
Overview
Cool Application
Internal
Application development
Others
![Page 22: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/22.jpg)
Development Environment
SDK = libraries + tools + emulator + doc
SDK add-on: Google Maps API
Development Environment
Eclipse + ADT plugin
Tools + Ant
![Page 23: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/23.jpg)
Build Process & Artifacts
![Page 24: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/24.jpg)
Android Application Fundamentals
Fundamentals
Activity
Service
Broadcast receiver
Content provider
Intent
intent intent
Music play service
Running in background
![Page 25: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/25.jpg)
Activities & Tasks
Task: a stack of activities
A task can contain
activities from different
applications
Back button navigates
backward in the stack
All the activities in a
task move together as a
unit
Task Task
![Page 26: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/26.jpg)
User Interface
View & ViewGroup
XML layout file
Create object in code
![Page 27: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/27.jpg)
API
Android Specified
System
UI
SQLite
JDK
HttpClient
JSON
XML
Add-on
Google Map API
![Page 28: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/28.jpg)
Publish Your Application
![Page 29: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/29.jpg)
After Published
Mobile Advertising
for Mobile Application
Flurry.com
Mobile application analytics
![Page 30: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/30.jpg)
Overview
Cool Application
Internal
Application development
Others
![Page 31: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/31.jpg)
山寨
![Page 32: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/32.jpg)
Vendor Customization
Android
(Open Source)
Applications(Gmail, Calendar, Market etc)
Other bundle
applications
Applications
Replace UI
HTC SenseSonyEricsson Rachael
Motorola Blur
Google Account
![Page 33: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/33.jpg)
OMS (OPhone)
![Page 34: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/34.jpg)
OMS (OPhone)
Android
(Open Source)
Applications(Gmail, Calendar, Market etc)
Applications
Replace UI
Google AccountApplications
JIL Widget
![Page 35: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/35.jpg)
GFW
Android mobile is Internet mobile
Google services
Application as front-end, web service back-end
Cloud computing
DNS pollution:
android.clients.google.com
VPN support in Android
![Page 36: Android](https://reader033.fdocuments.us/reader033/viewer/2022060110/555a4453d8b42ae1398b5053/html5/thumbnails/36.jpg)