Presentation is loading. Please wait.

Presentation is loading. Please wait.

2012.11.22 Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.

Similar presentations


Presentation on theme: "2012.11.22 Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of."— Presentation transcript:

1 2012.11.22 Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of

2 2012.11.22 Content  Environment  Building my first app  Create an Android Virtual Device  Run app on Emulator  User Interface Overview

3 2012.11.22  Eclipse An integrated development environment (IDE) for multi-language.  ADT plugin Android Developer Tools. It extends the capabilities of Eclipse to let you quickly set up new Android projects, build an app UI, debug your app, and export signed (or unsigned) app packages (APKs) for distribution.  Android SDK API libraries and developer tools necessary to build, test, and debug apps for Android. Environment

4 2012.11.22 Environment (cont.)  One Step to build environment Download the ADT bundle packageDownload the ADT bundle package and unzip it. Download the ADT bundle packageIncludes: Eclipse + ADT plugin Eclipse + ADT plugin Android SDK Tools Android SDK Tools Android Platform-tools Android Platform-tools The latest Android platform The latest Android platform The latest Android system image for the emulator The latest Android system image for the emulator

5 2012.11.22 Building my first app  Double-click to run Eclipse X:\adt-bundle-windows\eclipse\eclipse.exe

6 2012.11.22 Building my first app (cont.)  New an android application project File / New / Android Application Project

7 2012.11.22 Building my first app (cont.)  Application Name App 名,首字大寫,中間可以有空白,此為出現在手機上的名稱  Project Name Eclipse 中供辨識用的專案名 稱 (workspace 中的目錄名稱 )  Package Name Java 用來命名 package 的格 式,通常以組織單位的 domain 來命名,必須唯一

8 2012.11.22  Minimum Required SDK app 所支援的最低版本 ( 用於 google play 搜尋 )  Target SDK app 所支援的最高版本 ( 用於 google play 搜尋 )  Compile With 以指定版本的 API 編譯 app  Theme 要使用的 UI theme Building my first app (cont.)

9 2012.11.22

10 2012.11.22

11 2012.11.22

12 2012.11.22

13 2012.11.22

14 2012.11.22  AndroidManifest.xml 宣告程式特性、權限及使用到的元件  src \ MainActivity.java app 進入點原始碼  res \ layout \ activity_main.xml 使用者介面描述檔 Building my first app (cont.)

15 2012.11.22 Create an Android Virtual Device  建立 android 模擬器 Window / Android Virtual Device Manager

16 2012.11.22  設定規格並執行模擬器 Create an Android Virtual Device (cont.)

17 2012.11.22

18 2012.11.22 Run app on Emulator

19 2012.11.22 Run app on Emulator (cont.)

20 2012.11.22 User Interface Overview  ViewGroup A layout or container such as RelativeLayout or LinearLayout  View A child of ViewGroup such as button or text field

21 2012.11.22  android:id="@+id/editText1" Android:id 宣告此元件之唯一識別名稱,讓此元件可在原始碼中操作 @ 代表其位址參考自資源檔案 R.java + 第一次宣告此資源 ID 時須加上 + 號 editText1 為此元件之識別名稱 我們可在原始碼中以 R.id.editText1 來操作此一元件  android:layout_width="wrap_content“ wrap_content 表示寬度由內容決定 User Interface Overview (cont.)


Download ppt "2012.11.22 Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of."

Similar presentations


Ads by Google