SlideShare ist ein Scribd-Unternehmen logo
1 von 92
Android程式開發簡介
1
outline
• 什麼是 Android ?
• Andoird 的系統架構
• Android SDK 下載安裝教學
• Android 專案建置與架構說明
• Android UI 介面設計基礎篇
• Android 程式設計基礎
• Android AVD模擬器
• Android App上架GooglePlay流程
2
什麼是 Android ?
3
Andoird 的系統架構
• Application framework
• Dalvik virtual machine
• Android SDK
4
Application framework
5
Dalvik virtual machine
6
Android SDK
• Android 軟體開發工具包(software development
kit, SDK)
• Android應用程式除錯工具(Android Debug
Bridge, ADB)
• Android 手機模擬器(Android Emulator)
7
Android SDK 下載安裝教學
1. 下載與安裝 JDK
2. 下載與執行 Eclipse IDE
3. 下載與安裝 ADT Plugin for Eclipse
4. 下載與安裝 Android SDK
8
下載與安裝 JDK
• http://www.oracle.com/technetwork/java/javase/downloads/index
.html
9
下載與安裝 JDK
10
下載與安裝 JDK
11
下載與安裝 JDK
12
下載與安裝 JDK
13
下載與安裝 JDK
14
下載與安裝 JDK
15
下載與安裝 JDK
16
下載與安裝 JDK
17
下載與執行 Eclipse IDE
18
下載與執行 Eclipse IDE
19
下載與執行 Eclipse IDE
20
下載與執行 Eclipse IDE
21
下載與執行 Eclipse IDE
22
下載與安裝 ADT Plugin for Eclipse
23
下載與安裝 ADT Plugin for Eclipse
24
下載與安裝 ADT Plugin for Eclipse
25
下載與安裝 ADT Plugin for Eclipse
26
下載與安裝 ADT Plugin for Eclipse
27
下載與安裝 ADT Plugin for Eclipse
28
下載與安裝 ADT Plugin for Eclipse
29
下載與安裝 ADT Plugin for Eclipse
30
下載與安裝 Android SDK
• 在Eclipse開發工具中選擇功能表「Window→Android SDK Manager」
31
下載與安裝 Android SDK
32
Android 專案建置與架構說明
• 建立 Android 應用程式專案流程
• Android專案的檔案目錄結構
33
建立 Android 應用程式專案流程
34
35
36
37
38
39
40
Android專案的檔案目錄結構:src
41
Android專案的檔案目錄結構:gen
42
Android專案的檔案目錄結構:assets
43
Android專案的檔案
目錄結構:res
44
Android專案的檔案目錄結構:
AndroidManifest.xml
45
Android UI 介面設計基礎篇
• Android介面架構
• Android介面設計工具
• Android介面設計基本元件
46
Android介面架構
47
Android介面工具
48
Android介面工具
49
Android介面設計基本元件
• LinearLayout
• RelativeLayout
• TableLayout
50
LinearLayout
51
LinearLayout
52
LinearLayout
53
RelativeLayout
54
RelativeLayout
55
TableLayout
56
TableLayout
57
58
Android 程式設計基礎
• Java簡介
• Activity介紹
• 啟動Activity元件
• 實作介面操作
59
Java簡介
60
Activity介紹
• 基本上有四個狀態
1. Active
2. Paused
3. Stopped
4. Dead
61
Activity介紹
62
啟動Activity元件
63
啟動Activity元件
64
實作介面操作
• activity_main.xml
• MainActivity.java
65
Android AVD模擬器
• 安裝並啟動AVD
• 執行專案到AVD
66
安裝並啟動AVD
• Eclipse > Window >Android Virtual Device Manager
67
安裝並啟動AVD
68
安裝並啟動AVD
69
安裝並啟動AVD
70
執行專案到AVD
71
執行專案到AVD
72
執行專案到AVD
73
執行專案到AVD
74
Android App上架GooglePlay流程
• Eclipse匯出APK
• 安裝APK到手機
• Google Play上架
75
Eclipse匯出APK
76
Eclipse匯出APK
77
Eclipse匯出APK
78
Eclipse匯出APK
79
Eclipse匯出APK
80
安裝APK到手機
• Step1:
先把從電腦下載的APK檔放到手機的SD卡中,
或者直接用手機上網下載APK檔到SD卡。
• Step2:
設置權限:允許安裝Market以外的程式
• Step3:
點選要安裝的APK檔並且執行安裝
81
Google Play上架
• https://play.google.com/apps/publish/
82
Google Play上架
83
Google Play上架
84
Google Play上架
85
Google Play上架
86
Google Play上架
87
Google Play上架
88
Google Play上架
89
Google Play上架
90
Google Play上架
91
Google Play上架
92

Weitere ähnliche Inhalte

Was ist angesagt?

InMobi_IAT SDK介接說明(二)
InMobi_IAT SDK介接說明(二)InMobi_IAT SDK介接說明(二)
InMobi_IAT SDK介接說明(二)
沛豈 謝
 
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
My own sweet home!
 
Introduction to air for android 邱彦林
Introduction to air for android 邱彦林Introduction to air for android 邱彦林
Introduction to air for android 邱彦林
FLASH开发者交流会
 

Was ist angesagt? (7)

轻松写出优雅的Java代码之check style
轻松写出优雅的Java代码之check style轻松写出优雅的Java代码之check style
轻松写出优雅的Java代码之check style
 
InMobi_IAT SDK介接說明(二)
InMobi_IAT SDK介接說明(二)InMobi_IAT SDK介接說明(二)
InMobi_IAT SDK介接說明(二)
 
2013/05/19 - Titanium 入門實戰 30 分鐘教你寫出 youtube App + 會員系統 @jsdc2013
2013/05/19  - Titanium 入門實戰 30 分鐘教你寫出 youtube App + 會員系統 @jsdc20132013/05/19  - Titanium 入門實戰 30 分鐘教你寫出 youtube App + 會員系統 @jsdc2013
2013/05/19 - Titanium 入門實戰 30 分鐘教你寫出 youtube App + 會員系統 @jsdc2013
 
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
 
Crashlytics 使用教學
Crashlytics 使用教學Crashlytics 使用教學
Crashlytics 使用教學
 
Introduction to air for android 邱彦林
Introduction to air for android 邱彦林Introduction to air for android 邱彦林
Introduction to air for android 邱彦林
 
CYBERSEC 2020 臺灣資安大會 - 第一次使用 k8s 就不埋漏洞
CYBERSEC 2020 臺灣資安大會 - 第一次使用 k8s 就不埋漏洞CYBERSEC 2020 臺灣資安大會 - 第一次使用 k8s 就不埋漏洞
CYBERSEC 2020 臺灣資安大會 - 第一次使用 k8s 就不埋漏洞
 

Ähnlich wie Android開發app

Orientation Program
Orientation ProgramOrientation Program
Orientation Program
Luo Korth
 
04.layman android google handheld device application design
04.layman android   google handheld device application design04.layman android   google handheld device application design
04.layman android google handheld device application design
gaquay086
 
HTML5 生态系统和应用架构模型
HTML5 生态系统和应用架构模型HTML5 生态系统和应用架构模型
HTML5 生态系统和应用架构模型
Tom Fan
 
Android快速发布&持续集成
Android快速发布&持续集成Android快速发布&持续集成
Android快速发布&持续集成
whykill
 
Android开发基础
Android开发基础Android开发基础
Android开发基础
ykdsg
 

Ähnlich wie Android開發app (20)

Orientation Program
Orientation ProgramOrientation Program
Orientation Program
 
GDG Taichung - Flutter and Firebase.pdf
GDG Taichung - Flutter and Firebase.pdfGDG Taichung - Flutter and Firebase.pdf
GDG Taichung - Flutter and Firebase.pdf
 
和Android源代码一起工作 | 海豚浏览器 胡继堂
和Android源代码一起工作 | 海豚浏览器 胡继堂和Android源代码一起工作 | 海豚浏览器 胡继堂
和Android源代码一起工作 | 海豚浏览器 胡继堂
 
Windows App development for iOS, Android developer
Windows App development for iOS, Android developerWindows App development for iOS, Android developer
Windows App development for iOS, Android developer
 
Docker基礎
Docker基礎Docker基礎
Docker基礎
 
Android gradle 从入门到gg 0
Android gradle 从入门到gg 0Android gradle 从入门到gg 0
Android gradle 从入门到gg 0
 
Android ADK
Android ADKAndroid ADK
Android ADK
 
Android
AndroidAndroid
Android
 
Android gradle 从入门到gg 1
Android gradle 从入门到gg 1Android gradle 从入门到gg 1
Android gradle 从入门到gg 1
 
炎炎夏日學 Android 課程 - Part 0: 環境搭建
炎炎夏日學 Android 課程 - Part 0: 環境搭建炎炎夏日學 Android 課程 - Part 0: 環境搭建
炎炎夏日學 Android 課程 - Part 0: 環境搭建
 
20141212 html5 及微軟跨平台佈局 long
20141212 html5 及微軟跨平台佈局   long20141212 html5 及微軟跨平台佈局   long
20141212 html5 及微軟跨平台佈局 long
 
Android工作坊
Android工作坊Android工作坊
Android工作坊
 
LargeCodebases_Lecture01_Getting Set Up.pptx
LargeCodebases_Lecture01_Getting Set Up.pptxLargeCodebases_Lecture01_Getting Set Up.pptx
LargeCodebases_Lecture01_Getting Set Up.pptx
 
04.layman android google handheld device application design
04.layman android   google handheld device application design04.layman android   google handheld device application design
04.layman android google handheld device application design
 
Android应用开发 - 沈大海
Android应用开发 - 沈大海Android应用开发 - 沈大海
Android应用开发 - 沈大海
 
Android 基礎開發課程
Android 基礎開發課程Android 基礎開發課程
Android 基礎開發課程
 
HTML5 生态系统和应用架构模型
HTML5 生态系统和应用架构模型HTML5 生态系统和应用架构模型
HTML5 生态系统和应用架构模型
 
Android快速发布&持续集成
Android快速发布&持续集成Android快速发布&持续集成
Android快速发布&持续集成
 
Flutter 踩雷心得
Flutter 踩雷心得Flutter 踩雷心得
Flutter 踩雷心得
 
Android开发基础
Android开发基础Android开发基础
Android开发基础
 

Android開發app