Download presentation
Presentation is loading. Please wait.
Published byGwendoline Murphy Modified over 9 years ago
1
Introduction of Android Blackmore Hsiao & Steve Hu WGT1 2008/12/26 Blackmore Hsiao & Steve Hu WGT1 2008/12/26
2
Qisda Confidential 2007 Outline What is Android Android Architecture Development Environment of Android
3
What is Android
4
Qisda Confidential 2007 What is Android Android is a ROBOT that looks completely human An Open Handset Alliance Project OHA members : 47 members currently OHA members Mobile Operators : NTT, T-Mobile, Vodafone,… Handset Manufacturers : HTC, Moto, SE, LG, … Semiconductor Companies : Intel, Qualcomm, … Software Companies : Google, eBay, …
5
Qisda Confidential 2007 What is Android Software stack for mobile devices that includes an operating system, middleware and key applications Using Java programming language to develop applications
6
Qisda Confidential 2007 Features 1. Application framework Enabling reuse and replacement of components 2. Dalvik virtual machine Optimized for mobile devices 3. Integrated browser Base on the open source WebKit engine 4. Optimized graphics Powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) 5. SQLite For structured data storage
7
Qisda Confidential 2007 Features 6. Media support For common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) 7. GSM Telephony Hardware dependent 8. Bluetooth, EDGE, 3G, and WiFi Hardware dependent 9. Camera, GPS, compass, and accelerometer Hardware dependent 10. Rich development environment Including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE
8
Android Architecture
9
Qisda Confidential 2007 Android Architecture Middleware
10
Qisda Confidential 2007 Android Architecture
11
Qisda Confidential 2007 Activity Manager An Activity is a chunk of code that does some work; it usually includes display UI to user, but not necessary Typically, you'll designate one of your application's Activities as the entry point to your application Manage the life cycle of applications and provides a common navigation backstack
12
Qisda Confidential 2007 Window Manager Manage all the opened Window public void removeViewImmediate (View view)View This is not for normal applications; using it correctly requires great care
13
Qisda Confidential 2007 Content Providers A content provider is a data storehouse Only required if you need to share data between multiple applications For example, the contacts data is used by multiple applications and must be stored in a content provider
14
Qisda Confidential 2007 View System View represents the basic UI building block A rich and extensible set of views: Lists, Grids, text boxes, buttons, and even an embeddeable web browser View-Gallery View-Gallery All of the views in a window are arranged in a single tree Implementing a Custom View : override methods when FocusChanged, key event, touch screen motion event, …etc happened
15
Qisda Confidential 2007 Package Manager Manage the application packages that are currently installed on the device
16
Qisda Confidential 2007 Telephony Manager Provide access to information about the telephony services on the device Application can register a listener to receive notification of telephony state changes
17
Qisda Confidential 2007 Resource Manager Providing access to non-code resources such as localized strings, graphics, and layout files
18
Qisda Confidential 2007 Location Manager Location information from GPS or Network public Location getLastKnownLocation (String provider)LocationString Then use the location to get latitude, longitude, altitude, speed, …etc
19
Qisda Confidential 2007 Notification Manager Enables all applications to display custom alerts in the status bar To tell the user that something has happened in the background Notification type Persistent icon that goes in the status bar Turning on or flashing LEDs Alerting the user by flashing the backlight, playing a sound, or vibrating
20
Qisda Confidential 2007 Android Architecture
21
Qisda Confidential 2007 Libraries Surface manager : Manage display and seamlessly composites 2D and 3D graphic OpenGL ES : 3D graphics SGL : 2D graphics Media Framework : support different media type FreeType : bitmap and vector font rendering SSL : Secure Socket Layer SQLite : lightweight database engine WebKit : browser engine Libc : standard C system library
22
Qisda Confidential 2007 Dalvik Virtual Machine Develop by Dan Bornstein Named it after the fishing village of Dalvík in Eyjafjörður, Iceland DalvíkEyjafjörðurIceland NOT a Standard Java Virtual Machine (JVM) Compile Java source code to compact.dex file, and then run on Dalvik VM Java class file need to use “ dx” tool compile to.dex file
23
Qisda Confidential 2007 Dalvik Virtual Machine Register -Based Architecture (cf. Stack- Based in JVM) which is designed for resource limited mobile device On Android, every Application runs in its own process, with its own instance of Dalvik VM
24
Qisda Confidential 2007 Android Architecture
25
Qisda Confidential 2007 Linux Kernal Linux 2.6 for core system services such as security, memory management, process management, network stack, and driver model Act as abstraction layer between hardware and the rest of software stack Why linux? Because It’s already open source!
26
Development Environment of Android
27
Qisda Confidential 2007 Agenda 為何使用 Eclipse 做為 Android 編輯環境 下載路徑 安裝 Java Runtime Environment 安裝 Android Eclipse Plugin 指定 Android SDK 位置 建立新專案與使用模擬器執行程式 Summary
28
Qisda Confidential 2007 為何使用 Eclipse 做為 Android 編輯環境 GO
29
Qisda Confidential 2007 用 Eclipse 開發 Android 的好處 1 :免費 2 :免費 3 :免費
30
Qisda Confidential 2007 下載路徑 GO
31
Qisda Confidential 2007 下載路徑 1 :下載 Google Android SDK http://code.google.com/android/download.html http://code.google.com/android/download.html 2 :下載 eclipse http://www.eclipse.org/downloads/ http://www.eclipse.org/downloads/ 3 :下載 JDK http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/javase/downloads/index.jsp
32
Qisda Confidential 2007 安裝 Java Development Kit(JDK) GO
33
Qisda Confidential 2007 安裝 JDK(1)
34
Qisda Confidential 2007 安裝 JDK(2)
35
Qisda Confidential 2007 安裝 JDK(3)
36
Qisda Confidential 2007 安裝 JDK(4)
37
Qisda Confidential 2007 安裝 JDK(5)
38
Qisda Confidential 2007 安裝 Android Eclipse Plugin GO
39
Qisda Confidential 2007 在 Help 選單選擇 Software Updates
40
Qisda Confidential 2007 在 Available Software 選擇 Add Site
41
Qisda Confidential 2007 輸入 URL : http://dl- ssl.google.com/android/eclipse/
42
Qisda Confidential 2007 勾選輸入的 URL
43
Qisda Confidential 2007 選擇 Install
44
Qisda Confidential 2007 選擇 Next
45
Qisda Confidential 2007 Accept the license agreement
46
Qisda Confidential 2007 Progressing
47
Qisda Confidential 2007 Restart
48
Qisda Confidential 2007 指定 Android SDK 位置 GO
49
Qisda Confidential 2007 選擇 Window 下的 Preferences
50
Qisda Confidential 2007 Browse to SDK Location
51
Qisda Confidential 2007 選擇確定
52
Qisda Confidential 2007 建立新專案與使用模擬器執行程式 GO
53
Qisda Confidential 2007 選擇 File 下 New->Project
54
Qisda Confidential 2007 選擇 Android Project
55
Qisda Confidential 2007 輸入參數
56
Qisda Confidential 2007 在專案名稱上按下滑鼠右鍵 ->Run As ->Android Application
57
Qisda Confidential 2007 Summary Eclipse 是免費的 IDE 。 安裝 JDK 安裝 Android Plugin 指向 Android SDK 建立新專案,使用模擬器執行程式。
58
Qisda Confidential 2007 Reference Documentation (Google Official) Google Android 裡頭有什麼? Google Android 裡頭有什麼? 史丹利部落格 : Android Architecture 史丹利部落格 : Android Architecture Android 架構說明 ( 上 ) Android 架構說明 ( 上 ) Android 架構說明 ( 中 ) Android 架構說明 ( 中 ) Android 架構說明 ( 下 ) Android 架構說明 ( 下 )
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.