Click here to load reader

深入浅出 Android

  • View
    261

  • Download
    5

Embed Size (px)

DESCRIPTION

深入浅出 Android

Text of 深入浅出 Android

  • Android (OSSEZ) CHS

    , 2012-05-07

    Author:YUCHENG HU, OSSEZ LLC

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 1 / 50

  • Copyright OSSEZ LLC 20062011.

    :http://www.ossez.comhttp://wiki.ossez.com

    :OSS OSSEZ ()

    :

    :

    Version Date Author Description

    1.1 2012-05-07 YUCHENG HU

    :N/A

    http://www.ossez.com

    ODT

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 2 / 50

  • 1 .............................................................................................................................................. 5

    1.1 Android.......................................................................................................................... 5

    1.2 Android ......................................................................................................................6

    1.3 Android .................................................................................................................. 8

    2 Install Android.............................................................................................................................. 9

    2.1 Android ........................................................................................................9

    2.2 ............................................................................................................................... 9

    2.3 ............................................................................................................................. 10

    2.3.1 Eclipse................................................................................................................11

    2.3.2 Eclipse................................................................................................................11

    2.3.3 ADT .....................................................................................................12

    2.4 Android SDK..............................................................................................................14

    2.5 Android SDK...............................................................................................................14

    3 ............................................................................................................................. 16

    3.1 ............................................................................................................................. 16

    3.2 ............................................................................................................................. 16

    3.3 ............................................................................................................................. 17

    4 Android ..................................................................................................................18

    4.1 Android ..........................................................................................................18

    4.2 Android ...........................................................................................................18

    4.3 .................................................................................................................. 18

    4.3.1 .................................................................................................................. 20

    4.3.2 ....................................................................................................20

    4.3.3 ...............................................................................................................21

    4.3.4 .......................................................................................................................... 21

    4.4 Android ............................................................................................................22

    4.4.1 ...........................................................................................................22

    4.4.2 ...................................................................................................................... 22

    4.4.3 ...........................................................................................................23

    5 Android ...............................................................................................................25

    5.1 .......................................................................................................................... 25

    5.1.1 ...............................................................................................................27

    6 GUI ........................................................................................................................... 30

    7 GUI ........................................................................................................................... 35

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 3 / 50

  • 7.1 ............................................................................................................................. 35

    7.2 ............................................................................................................................. 36

    7.3 .................................................................................................................................... 37

    8 ID................................................................................................................................ 39

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 4 / 50

  • 1

    1.1 Android

    2008

    15Google

    30

    2007 11 5Google 33(

    LG)

    (Open Handset Alliance)Android

    Android

    Android(11 12)Google

    WindowsMacOSXLinux Android

    (Software Development Kit,SDK)

    (kernel)

    Google

    Google SergeyBrin Android(SDK)

    AndroidSergeyBrin

    1000

    Android

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 5 / 50

  • 2008 9 24T-Mobile Android(G1)

    Google Andorid SDK 1.0 rc1

    1.0 API API

    G1 10 20

    T-Mobile 150

    10/21Open Handset Alliance Android

    1.2 Android

    Android PC

    Android Linux(kernel)

    Windows MobileSymbian

    Android

    Android

    ( MicroSoft)

    Android

    Android

    Android

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 6 / 50

  • Android3D

    Android

    Google

    Android

    Android Linux

    Apache

    LinuxGoogle(Dalvik Sun

    J2ME) Eclipse (IDE)

    (WindowsMacOSXLinux)(SDK)

    1000 Android

    Android

    ?Android

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 7 / 50

  • Android

    Android

    Android

    Google(WindowsMacLinux)

    Android

    1.3 Android

    Android http://www.android.com/

    (Open Handset Alliance)

    http://www.openhandsetalliance.com/

    Google Android http://android-developers.blogspot.com/

    Android http://code.google.com/android/adc.html

    Android http://developer.android.com/

    Android http://source.android.com

    Android

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 8 / 50

  • 2 Install Android

    2.1 Android

    Android

    Android

    2.2

    Android

    * Windows XP Vista

    * Mac OS X 10.4.8 ( x86 Intel Mac)

    * Linux ( Ubuntu 6.10 Dapper Drake )

    Android

    * JDK 5 JDK 6

    Java (JDK 5 JDK 6)

    Java (JRE) Java (JDK)

    java -version java (java

    >1.5)

    Android Java Gnu (gcj)

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 9 / 50

  • * Eclipse IDE

    Eclipse 3.3 ( Europa) 3.4 ( Ganymede)

    Eclipse Eclipse Java

    (Java Development Tool Plugin, JDT)

    Eclipse IDE JDT

    Eclipse for Java Developers

    * ADT Eclipse Android (Android Development Tools

    plugin)

    * Android SDKAndroid Android (Emulator)

    *

    Linux Mac Apache Ant 1.6.5

    Windows Apache Ant 1.7

    NetBeansIDEA Android

    Eclipse

    2.3

    JDK 5 JDK 6 Android

    1. Eclipse

    2. Eclipse

    3. ADT

    4. Android SDK

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 10 / 50

  • 5. Android SDK

    2.3.1 Eclipse

    Android Eclipse

    Android Java Android

    Java (Java Development Kit, JDK)

    JDK http:/ /java.sun.com

    Mac OS X JDK

    JDK Eclipse Eclipse

    Eclipse Eclipse IDE for Java DevelopersEclipse IDE for Java

    EE Developers Eclipse JDT

    Eclipse IDE for Java Developers

    2.3.2 Eclipse

    Eclipse Java Eclipse

    Eclipse Eclipse

    Eclipse

    Eclipse

    Eclipse IDE

    Android

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 11 / 50

  • 2.3.3 ADT

    Eclipse Android (ADT)

    2.3.3.1 Eclipse 3.4

    Help->Software Updates

    Available Software Add Site... ()

    "Location" (URL)

    https://dl-ssl.google.com/android/eclipse/site.xml

    "OK"

    Eclipse

    http:/ /dl-ssl.google.com/android/eclipse/

    https

    https://dl-ssl.google.com/android/eclipse/site.xml

    Developer Tools Install

    Next()

    Eclipse Yes

    2.3.3.2 Eclipse 3.3

    Help->Software Updates->Find and Install

    OSSEZ.COM-v1.2-Technology.ott 2012-05-07 OSSEZ LLC 2006 - 2011 12 / 50

  • Search for new features to insta ll( )

    Next ( )

Search related