91
introduction of Android Framework 2010/1/14 1

Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Embed Size (px)

Citation preview

Page 1: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

introduction of Android Framework

2010/1/14

1

Page 2: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (1)

– Mobile Platform Comparison• Symbian• Android• WindowMobile• PalmWebOS• i-Phone

– Mobile Application Store• App Store• Android Market• Blackberry App World• Nokia Ovi Store• Palm App Catalog• Marketplace for Mobile

2

Page 3: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (2)

– Introduction to Android Framework• Core Platform Services

– Views System– Activity Manager– Window Manager– Content Provider– Resource Manager– Package Manager– Notification Manager

• Hardware Services– Location Manager– Telephony Manager– Bluetooth Service– Wifi Service– USB Service– Sensor Service

• Component of an Android Application

3

Page 4: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (1)

– Mobile Platform Comparison• Symbian• Android• WindowMobile• PalmWebOS• i-Phone

– Mobile Application Store• App Store• Android Market• Blackberry App World• Nokia Ovi Store• Palm App Catalog• Marketplace for Mobile

4

Page 5: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

5

Page 6: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

What is Symbian?

• An proprietary operating system for mobile devices and smartphones by Symbian Ltd.

• Symbian is the world's most popular mobile operating system, accounting for 50% of smartphone sales in Q2 2009.

• The process of publishing the source code under the Eclipse Public License (EPL) was slated for completion in 2010.

6

Page 7: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Symbian’s HistoryYear Event

1980 Psion founded by David Potter

1984 Psion Organiser launched

1986 the "vastly improved" Psion Organiser II launches, with a simple-to-use database programming language, OPL.

1987 Psion begins development of its “SIBO" family of devices and its own new multitasking operating system called EPOC to run its PDA products.

1989 First EPOC16 devices, the MC400 and MC200, ship with a primarily 1-bit, keyboard-operated graphical interface.

1997 The first version of EPOC32 Release 1 appeared on the Psion Series 5 ROM v1.0. The EPOC32 operating system, at the time simply referred to as EPOC, was later renamed Symbian OS. EPOC32 was a pre-emptive multitasking, single user operating system with memory protection, which encourages the application developer to separate their program into an engine and an interface.

1998 In June Psion Software became Symbian, a major joint venture between Psion and phone manufacturers Ericsson, Motorola, and Nokia. As of Release 6, EPOC became known simply as Symbian OS.

1999 The Psion Series 5mx, Psion Series 7, Psion Revo, Diamond Mako, Psion netBook, netPad, GeoFox One, and Ericsson MC218 were released using ER5. A phone project was announced at CeBIT, the Phillips Illium/Accent, but did not achieve a commercial release.

2000 The first phone, the Ericsson R380 was released using ER5u in November.

2001 The first 'open' Symbian OS phone, the Nokia 9210 Communicator, was released in June 2001. Bluetooth support was added. Almost 500,000 Symbian phones were shipped in 2001, rising to 2.1 million the following year.

2003 First shipment of Symbian OS 7.0 and 7.0s, an important Symbian release which appeared with all contemporary user interfaces including UIQ, Series 80, Series 90, Series 60 as well as several FOMA phones in Japan. It also added EDGE support and IPv6. One million Symbian phones were shipped in Q1 2003, with the rate increasing to one million a month by the end of 2003.

2004 Psion sells its stake in Symbian.

2006 100 millionth phone with Symbian OS is shipped.

2008 Symbian acquired by Nokia; Symbian Foundation formed. 7

Page 8: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Layers in Symbian OS

8

Page 9: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Symbian’s Features

• Features:– Pre-emptive Multitasking

– Memory protection

– like other operating systems

• Design principles– The integrity and security of user data

is paramount,

– user time must not be wasted, and

– all resources are scarce.

9

Page 10: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Symbian’s Products

• Ericsson R380– First Symbian phone

– Version: Symbian v5.1

– Release Date: 2000

• Nokia 9210– The first 'open' Symbian OS phone

– Version: Symbian v6.0

– Release Date: 2001.6

• Nokia N97– Version: Symbian v9.4(S60)

– Release Date: 2009.6.12

10

Page 11: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

11

Page 12: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

What is Android

• Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.

12

Page 13: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android’s History

• In July 2005, Google acquired Android, Inc.• Update History:

– 1.5 (Cupcake) Released on 30 April 2009

– 1.6 (Donut) Released on 15 September 2009

– 2.0 (Eclair) Released on 26 October 2009

– 2.0.1 Release 1Released on 3 December 2009

– Upcoming software stack is to be named Flan

13

Page 14: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android’s History

Handset layouts

The platform is adaptable to larger, VGA, 2D graphics library, 3D graphics library based on OpenGL ES 1.0 specifications, and traditional smartphone layouts.

Storage The Database Software SQLite is used for data storage purposes

Connectivity Android supports connectivity technologies including GSM/EDGE, CDMA, EV-DO, UMTS, Bluetooth, and Wi-Fi.

Messaging SMS and MMS are available forms of messaging including threaded text messaging.

Web browser The web browser available in Android is based on the open-source WebKit application framework. The browser scores a 93/100 on the Acid3 Test.

Java support Software written in Java can be compiled to be executed in the Dalvik virtual machine, which is a specialized VM implementation designed for mobile device use, although not technically a standard Java Virtual Machine.

Media support Android supports the following audio/video/still media formats: H.263, H.264 (in 3GP or MP4 container), MPEG-4 SP, AMR, AMR-WB (in 3GP container), AAC,HE-AAC (in MP4 or 3GP container), MP3, MIDI, OGG Vorbis, WAV, JPEG, PNG, GIF, BMP.

Additional hardware suuport

Android can use video/still cameras, touchscreens, GPS, accelerometers, magnetometers, accelerated 2D bit blits (with hardware orientation, scaling, pixel format conversion) and accelerated 3D graphics.

Development environment

Includes a device emulator, tools for debugging, memory and performance profiling, a plugin for the Eclipse IDE.

Market Like many phone-based application stores, the Android Market is a catalog of applications that can be downloaded and installed to target hardware over-the-air, without the use of a PC. Originally only freeware applications were supported. Paid-for apps have been available on the Android Market in the United States since 19 February 2009. [36] The Android Market has been expanding rapidly. By December, 2009, it had over 20,000 Android applications for download.

Muti-touch Android has native support for multi-touch which is available in newer handsets such as the HTC Hero. The feature was initially disabled at the kernel level (possibly to avoid infringing Apple patents on touch-screen technology)

14

Page 15: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android’s Features

• Application framework enabling reuse and replacement of components

• Dalvik virtual machine optimized for mobile devices

• Integrated browser based on the open source WebKit engine

• Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification

• SQLite for structured data storage

• Media support for common audio, video, and still image formats

• GSM Telephony

• Bluetooth, EDGE, 3G, and WiFi

• Camera, GPS, compass, and accelerometer

• Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

15

Page 16: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Layers in Android OS

16

Page 17: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android’s Products

• G1:– First Android phone

– Version: Android v1.0

– Release Date: 2008.10.22

• HTC Tattoo– 第一隻可由內到外客製化的 Android Phone

– Version: Android v1.6

– Release Date: 2009.11.19

Tattoo

HTC Tattoo

G1

17

Page 18: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android’s Products

• Google Nexus One– First Google phone– Version: Android v2.1– Release Date: 2010.01.05

Google Nexus One

18

Page 19: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

19

Page 20: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

20

Page 21: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Windows Mobile is a combination of the Windows CE operating system, a new user interface and applications.– Smartphone – Windows Mobile Standard Edition –

a cell phone first. Does not have a touch screen.

– Pocket PC – Windows Mobile Professional – a data input device using a touch screen.

– Size – small handheld devices however some are much larger

– Combined devices – cell phone, PDA, media player, camera, etc.

21

Page 22: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Windows Mobile’s History

版本 發布日期 附註 別名 基於

Pocket PC 2000 2000 年 4 月 19 日 里程碑 "Rapier"( 雙刃劍 ) Windows CE 3.0

Pocket PC 2002 2001 年 10 月 "Merlin"( 默林 ) Windows CE 4.0

Windows Mobile 2003

2003 年 6 月 23 日 第一個版本的Windows Mobile

"Ozone"( 臭氧 ) Windows CE 4.1

Windows Mobile 2003 SE

2004 年 3 月 24 日 Windows Mobile 2003 的第二版 Windows CE 4.2

Windows Mobile 5 2005 年 5 月 12 日 "Magneto"( 磁電機 )

Windows CE 5.0

Windows Mobile 6 2007 年 2 月 12 日 "Crossbow"( 石弓 )

Windows CE 5.1

Windows Mobile 6.1

2008 年 4 月 1 日 Windows CE 5.2

Windows Mobile 6.5

2009 年 5 月 11 日 Windows CE 5.2

Windows Mobile 7 2010 年 2 月 1 日 "Photon”

22

Page 23: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Windows Mobile’s

Pocket PC 2000

Pocket PC 2002

Windows Mobile 2003

Windows Mobile 2003

SE

Windows Mobile 5.0

Windows Mobile 6

Windows Mobile 6.1

Windows Mobile 6.5

Without Mobile Phone

Pocket PC 2000

Pocket PC 2002

Windows Mobile 2003 for Pocket

PC

N/A Windows Mobile 5.0 for Pocket

PC

Windows Mobile 6 Classic

Windows Mobile 6.1

Classic

N/A

With Mobile Phone & Touch

Screen

Pocket PC 2000 Phone

Edition

Pocket PC 2002 Phone

Edition

Windows Mobile 2003 for Pocket

PC Phone Edition

Windows Mobile 2003 SE for Pocket

PC Phone Edition

Windows Mobile 5.0 for Pocket

PC Phone Edition

Windows Mobile 6

Professional

Windows Mobile 6.1

Professional

Windows Mobile 6.5

Professional

Without Touch Screen

N/A Smartphone 2002

Windows Mobile 2003 for

Smartphone

Windows Mobile 2003

SE for Smartphone

Windows Mobile 5.0 for

Smartphone

Windows Mobile 6 Standard

Windows Mobile 6.1 Standard

Windows Mobile 6.5 Standard

23

Page 24: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Windows Mobile’s Features

• Windows Mobile offers:– Cell phone – voice calling

– Cellular based data – EvDO, 1xRTT, GPRS, EDGE and UMTS

– Wi-Fi – 802.11b as well as 802.11g

– Storage – internal storage and expansion via microSD, miniSD or SD flash

– Connectivity – Supports TCP/IP, web browser, IMAP and POP3 e-mail, native Exchange support

– Ability to display Word, Excel, and PowerPoint files – Pocket PCs can edit Word and Excel files

24

Page 25: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

What isn’t Windows Mobile

– Is not the same operating system and functionality of Windows that you have on your desktop PC

– Doesn’t run standard Windows applications including ActiveX controls designed for the PC.

– Limited browser functionality – subset of JavaScript and limited screen size affect usability of desktop websites

– Slower devices – most Windows Mobile devices CPUs run at 200-400MHz

– Limited storage – The internal flash storage is significantly smaller than your PC’s hard drive. Usually you will have anywhere from 32MB to 128MB of internal storage

25

Page 26: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Windows Mobile’s Products

Casio Cassiopeia EM-500

HP Jornada 560

O2 XDA IIi ASUS P525 HTC-HD2

Pocket PC 2000

Pocket PC 2002

Windows Mobile 2003

Windows Mobile 5.0

Windows Mobile 6.5

2001 2002 年 10 月 2005 年 5 月 2006 年 6 月 19 日在台上市

2009 年 11 月 17 日在台上市

26

Page 27: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Palm webOS History

Version. Release Date.

WebOS – 1.3.5 Build 194 Sprint Config – 2.0 12/28/2009

WebOS – 1.3.5 Build 194 Sprint Config – 2.0 12/28/2009

WebOS – 1.2.1 Sprint Config – 1.8 10/2/2009

WebOS – 1.1.0 Sprint Config – 1.7 7/23/2009

WebOS – 1.0.4 Sprint Config – 1.6 6/29/2009

WebOS – 1.0.3 Sprint Config – 1.5 6/19/2009

WebOS – 1.0.2 Sprint Config – 1.4 6/6/2009

http://support.sprintpcs.com/support/article/Find_and_update_the_software_version_on_your_Palm_Pre/case-ye186054-20090813-151310

27

Page 28: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Palm webOS Features

• Palm Synergy– that brings your information from all the places it resides

into one logical view.• Web-connected

– Web-kit browser• Run multiple applications at the same time• Instinctive user interface

– Applications run in cards– Cards are small web pages– HTML, CSS, JavaScript

• Intuitive and unobtrusive notifications

28

Page 29: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Palm webOS Architecture

Core OS

webOS Services

UI SystemManager

Applications

Mojo Framework

29

Page 30: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Palm webOS Products

30

Page 31: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Palm webOS Products

31

Page 32: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

iPhone OS History

34

Page 33: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

iPhone OS History

35

Page 34: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

iPhone OS features

•Full OS X•Multi Tasking•Networking•Syncing•Low Power•Security•Video

•Cocoa•Core Animation•Graphics•Audio•Widgets•Applications

36

Page 35: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

iPhone OS features

• It is based on Mac OS X, optimized for mobile

• ARM CPU, 4/8/16 Gb storage

• Touch screen, proximity sensor, accelerometer, ambient light sensor, multi-touch sensing

• Text input: virtual keyboard with spell checking and predictive input

• Phone, PDA and iPod features

37

Page 36: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

iPone OS Architecture

38

Page 37: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

iPhone OS Products

39

Page 38: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (1)

– Mobile Platform Comparison• Symbian• Android• WindowMobile• PalmWebOS• i-Phone

– Mobile Application Store• App Store• Android Market• Blackberry App World• Nokia Ovi Store• Palm App Catalog• Marketplace for Mobile

40

Page 39: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline

– Mobile Application Store “MAS”• App Store• Android Market• Blackberry App World• Nokia Ovi Store• Palm App Catalog• Marketplace for Mobile

41

Page 40: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

App Store

42

Page 41: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Billion App Countdown

• April 23, 2009

• Doubled at September 28, 2009

• Tripled at the beginning of 2010

43

Page 42: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Number of Applications

44

Page 43: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Apps by Category

45

Page 44: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android Market

• Available to users on 22 October 2008

• By December, 2009, there were over 20,000 applications

• Google Checkout

46

Page 45: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Priced Applications Availability

 Australia - paid apps cannot be submitted by Australian Developers.  Austria  France  Germany  Italy  Netherlands  New Zealand  Spain  United Kingdom  United States  Japan

47

Page 46: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Number of Applications

48

Page 47: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Applications Distribution

49

Page 48: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Applications Distribution

50

Page 49: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Applications Distribution

51

Page 50: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Applications Distribution

52

Page 51: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Blackberry App World

53

Page 52: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

App World

54

Page 53: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Top Download

55

Page 54: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Categories

56

Page 55: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Details

57

Page 56: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

PayPal

58

Page 57: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Reconfirm

59

Page 58: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

My World

60

Page 59: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Review

61

Page 60: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Marketplace for Mobile

– Rumors about the service in September 2008 “Skymarket”

– Opened for business on 6 October, 2009, featuring 246 applications

62

Page 61: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Mobile Application Store Comparison

App Store Android Market

App World Ovi Store App Catalog Marketplace for Mobile

Organizations Apple Google,OHA RIM Nokia Palm Microsoft

Established July 11, 2008 October 22, 2008

April 1, 2009 May 26, 2009

June 6, 2009 October 6, 2009

Available Apps 135,000 20,000 2,000 2,500 1,000 Less than 1,000

Install Base 58 million (40% iPod Touch)

1 million 8 million 100 million

150,000 Unknown (6.1 and 6.5 )

Exclusive App Source

Yes No No No Yes No

Carrier-Specific Stores

No Yes No Yes No Yes

Return Policy No 24 Hours No No No 24 Hours

Developer Share 70% 70% 80% 70% 70% 70%

Developer Fee $99/year $25 $200 €50 Free $99/year

App Listings Unlimited Unlimited 10 Unlimited Unlimited 5

63

Page 62: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Record Breaking Chrismas

64

Page 63: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Download Growth

65

Page 64: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android Devices Download Growth

66

Page 65: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Android Devices Download Share

67

Page 66: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (2) 本週主題

– Introduction to Android Framework• Core Platform Services

– Views System– Activity Manager– Window Manager– Content Provider– Resource Manager– Package Manager– Notification Manager

• Hardware Services– Location Manager– Telephony Manager– Bluetooth Service– Wifi Service– USB Service– Sensor Service

• Component of an Android Application

68

Page 67: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Introduction to Android Framework

69

Page 68: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Introduction to Android Framework

– Android Framework• Object

– Provide framework API for AP development

• Core Platform Services ( 提供撰寫 AP 所需之物件 )– Services that are essential to the Android platform

• Hardware Services ( 在 AP 端直接操作硬體 )– Hardware dependent Services e.g : GPS 、 Phone

Call.– 隨平台由廠商自行新增新的 Hardware Service( 需跨層軟

硬整合 ) e.g : WiMAX 、 VideoTelePhony.

70

Page 69: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (2) 本週主題

– Introduction to Android Framework• Core Platform Services

– Views System– Activity Manager– Window Manager– Content Provider– Resource Manager– Package Manager– Notification Manager

• Hardware Services– Location Manager– Telephony Manager– Bluetooth Service– Wifi Service– USB Service– Sensor Service

• Component of an Android Application

71

Page 70: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Views System– 用來建構一個應用程式的基本元件,例如:

在開發 AP 畫面時,常用的lists 、 grids 、 text boxes 、 buttons 控制項,甚至是嵌入式的瀏覽器

Core Platform Services

72

Page 71: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Activity Manager– 管理所有應用程式的生命週期 (P.85)

Core Platform Services

73

Page 72: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Window Manager– 用來管理所有開啟的視窗程式,決定當下哪

一個 AP 被放置於最上層

Core Platform Services

74

Page 73: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Content Providers– 提供平台讓 AP 可以分享資料給其它 AP

Core Platform Services

75

Page 74: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Resource Manager– 提供各種非程式碼的資源 ( 例如:圖形、排

版 (XML 檔案 ) 、 Image 、 Audio 等檔案 ) 讓應用程式去使用

Core Platform Services

76

Page 75: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Package Manager– AP 執行起來前的 apk 包解析工作

Core Platform Services

77

Page 76: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Notification Manager– 提供 AP 在狀態列 (Status Bar) 的地方顯示

AP 自定的警示訊息 (Alert) 。

Core Platform Services

78

Page 77: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (2) 本週主題

– Introduction to Android Framework• Core Platform Services

– Views System– Activity Manager– Window Manager– Content Provider– Resource Manager– Package Manager– Notification Manager

• Hardware Services– Location Manager– Telephony Manager– Bluetooth Service– Wifi Service– USB Service– Sensor Service

• Component of an Android Application

79

Page 78: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Location Manager– 用來管理地圖定位服務的相關功能

Hardware Services

80

Page 79: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Telephony Manager– 用來管理有關使用者撥打與接收電話的相關

功能

Hardware Services

81

Page 80: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

• Bluetooth Service• Wifi Service• USB Service• Sensor Service• 由廠商或 Google 自由新增

Hardware Services

82

Page 81: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Outline (2) 本週主題

– Introduction to Android Framework• Core Platform Services

– Views System– Activity Manager– Window Manager– Content Provider– Resource Manager– Package Manager– Notification Manager

• Hardware Services– Location Manager– Telephony Manager– Bluetooth Service– Wifi Service– USB Service– Sensor Service

• Component of an Android Application

83

Page 82: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Component of an Android Application

• Components of Android AP• Activity• Service• Broadcast Receivers• Content Provider

84

Page 83: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Activity

• AP 中每一個頁面都是一個 Activity , AP 是由多個 Activity 所構成。

• Activity 之間可以相互跳轉• Activity 有其生命周期,是由 Android 系統負

責管理• 可以在 Activity 中添加 UI 元件並由 View 決

定佈局方式

85

Page 84: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Activity with View & Widget

• List

• Checkbox

• Button

• Grid

86

Page 85: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Service

• Service 為一個背景程式,沒有 UI 介面,可以應用在音樂播放程式中,實現一邊上網一邊聽音樂的功能

• 當 Activity 被其他 Activity 覆蓋後,可以將欲持續執行的工作轉交給Service

• Service 也有生命週期

87

Page 86: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Activity with Intent

• Intent 是用來描述一個 AP 可以做的工作有哪些

• IntentFilter 是用來描述該 activity / service 能夠做的工作有哪些

88

Page 87: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Broadcast Receivers

• 使 AP 能對外部事件進行處理

89

Page 88: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Content Provider

• 在 Android 系統中每一個 AP 的數據都是私有的,必須透過 Content Provider 實現 AP之間的數據交換工作

• 例如某一個 AP 可以去存取通訊錄 AP 建立的聯絡人資料。

90

Page 89: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Let’s

Android

!91

Page 90: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Lifecycle of Activity

» return

92

Page 91: Introduction of Android Framework 2010/1/14 1. Outline (1) –Mobile Platform Comparison Symbian Android WindowMobile PalmWebOS i-Phone –Mobile Application

Lifecycle of Service

return

93